I'm trying to add tags to a stack while using SAM deploy, but they're not showing up. The SAM cli command code can be found below.
sam deploy --stack-name test-stack --resolve-image-repos --capabilities CAPABILITY_NAMED_IAM --no-fail-on-empty-changeset --template-file ./.aws-sam/build/template.yaml --resolve-s3 --tags Name=test-stack az:zone=infra
Tags are not being created in the CloudFormation stack despite giving the —tag parameter to the cli.
Can someone tell me how to add stack-level tags to the CloudFormation stack that is deployed using SAM CLI?