Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

aws-cloudformation-deploy:0.10.0 doesn't handle no updates to stack gracefully

Jeff T August 23, 2021

BitBucket Cloud Pipelines

aws-cloudformation-deploy Pipe version 0.10.0

TLDR; If a stack is in UPDATE_ROLLBACK_COMPLETE state and the next pipeline running against that stack results in "No updates are to be performed for stack", the pipe fails because stack state isn't UPDATE_COMPLETE

 

The scenario that occurred:

  1. A change was erroneously committed to the CloudFormation template which broke the AWS deployment
  2. AWS failed to deploy and rolled back, causing the pipeline to fail (GOOD)
  3. The change was rolled back to original form and committed, pipeline reruns
  4. Pipeline fails as it runs this Pipe because there are no changes to be made in AWS (template and params are same as current state) but pipe fails because final state is not what it expects - UPDATE_COMPLETE

 

Expected:

It's expected that the PIPE can detect when no changes are needed and treat that as a success regardless of the CloudFormation stack. This is how the AWS stack update process works and stack state changes only occur when changes are actually made.

 

Log:

Digest: sha256:24ad7558d24c7ce4bd5bf42272cd4a0b269248c7ac188277fbd314a337eb461d

Status: Downloaded newer image for bitbucketpipelines/aws-cloudformation-deploy:0.10.0

INFO: Using default authentication with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

INFO: Found credentials in environment variables.

INFO: Using stack template from ./deploy.yml for deploy.

INFO: Validating the template.

INFO: Updating the stack for STACKNAME_IN_UPDATE_ROLLBACK_COMPLETE.

WARNING: No updates are to be performed for stack STACKNAME_IN_UPDATE_ROLLBACK_COMPLETE.

INFO: Waiting for update COMPLETE status...

✖ Failed to update the stack. Status UPDATE_ROLLBACK_COMPLETE.

 

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2021

Hi @Jeff Taylor

Thank you for your suggestion.

We'll investigate this case and notify you.

 

Best regards,
Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events