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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,928
Community Members
 
Community Events
177
Community Groups

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

Edited

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

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

Atlassian Community Events