Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between --parameter-overrides and --tags

I am having a hard time understanding the difference between --parameter-overrides and --tags when deploying an AWS stack using CloudFormation. I tried to read through the documentation but I still do not understand, I seem to get exactly the same behaviour when I use the cli to deploy my stack with the usage of one or the other flag, such as

      aws --profile $PROFILE cloudformation deploy
      --stack-name ${STACK_NAME}
      --template-file $TEMPLATE_FILE
      --parameter-overrides
      ApplicationName=$APP_NAME
      --no-fail-on-empty-changeset
      --tags
      ApplicationName=$APP_NAME

When and why would I use the tags? Any help?

like image 714
etien Avatar asked Aug 04 '26 10:08

etien


1 Answers

--tags set arbitrary Tags on the Stack. Tags are key-value metadata for labelling and categorizing AWS resources. Tags are optional. They do not affect how CloudFormation deploys the stack.

--parameter-overrides inject parameter values into the template. Optional if you are happy with the template's parameter defaults (for new deploys) or currently deployed values (for updates).

like image 171
fedonev Avatar answered Aug 06 '26 01:08

fedonev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!