'getting error while running sam deploy command for AWS cloudformation
Trying to pass tag values in sam deploy command but getting error .Could you please help me on this .
TAGS = "Key=\"blockCode\" Value=\"sample\"" "Key=\"changeGroup\" Value=\"sample2\"" "Key=\"costCenter\" Value=\"sample3\""
sam deploy -t ./packaged.yml --stack-name $stack_name --tags $TAGS --region us-east-1 --no-confirm-changeset --no-fail-on-empty-changeset --config-env ${SSMENV} --parameter-overrides "SetDeploymentPreferencetype=${deploymentconfigtype}" "AppName=${APP}" "InfraStackName=${InfraStackName}" --capabilities CAPABILITY_NAMED_IAM
First keep tags values in a variable then passing it in cloudformation commandline .
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
