samhstn/website

Use SQS for queueing builds

Opened this issue · 0 comments

Currently if a codebuild build is run while another one is in progress (for the same issue number), and the cloudformation template is in the process of being deployed, we get an error similar to:

An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack:arn:aws:cloudformation:eu-west-1:741557730458:stack/samhstn-90/ce9c9400-2278-11eb-a6fa-06a6741d3858 is in UPDATE_IN_PROGRESS state and can not be updated.

We should instead wait for the cloudformation template finish updating, we can modify our buildspec.yml and use SQS for this.