Categorygithub.com/jakebark/tag-nag
modulepackage
0.0.0-20250304223223-0056fffba349
Repository: https://github.com/jakebark/tag-nag.git
Documentation: pkg.go.dev

# README

tag nag

Validate AWS tags in Terraform and CloudFormation.

Designed to run in a pipeline or as part of pre-deployment checks.

Installation

go install github.com/jakebark/tag-nag@latest

You may need to set GOPATH.

Docker

docker pull jakebark/tag-nag:latest
docker run --rm -v $(pwd):/workspace jakebark/tag-nag --tags "Owner,Environment" /workspace

Commands

Tag nag will search a file or directory for tag keys.

tag-nag <file/directory> --tags "<tagKey1>,<tagKeyN>"

tag-nag main.tf --tags "Owner" # run against a file
tag-nag ./my_project --tags "Owner","Environment" # run against a directory

Optional flags:

-c # case-insensitive 

Related Resources