I have the need to update a cloudformation stack with some new parameters. I would like to do that using the aws cloudformation pipe like this:
script:
- pipe: atlassian/aws-cloudformation-deploy:0.13.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'us-east-1'
STACK_NAME: 'my-stack-name'
TEMPLATE: 'https://s3.amazonaws.com/cfn-deploy-pipe/cfn-template.json'
STACK_PARAMETERS: >
[{
"ParameterKey": "KeyName",
"ParameterValue": "mykey"
},
{
"ParameterKey": "DBUser",
"ParameterValue": "mydbuser"
},
{
"ParameterKey": "DBPassword",
"ParameterValue": $DB_PASSWORD
But I also have parameters that I won't define in my pipeline and simply use what the previous value was for the parameter, which I would have setup manually through the aws console. This is how I would do it using the aws cli:
aws cloudformation update-stack --stack-name stack-name --use-previous-template --parameters ParameterKey=KeyName,ParameterValue=mykey ParameterKey=DBPassword,UsePreviousValue=true
Does the aws cloudformation pipe support the use of previous values in the STACK_PARAMETERS option?