Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment fails with CloudFormation operation conflict error #86

Open
mcalligator opened this issue Oct 25, 2024 · 0 comments
Open

Deployment fails with CloudFormation operation conflict error #86

mcalligator opened this issue Oct 25, 2024 · 0 comments

Comments

@mcalligator
Copy link

mcalligator commented Oct 25, 2024

Describe the bug
Deployment of the template fails with the following CloudFormation error:
A conflicting conditional operation is currently in progress against this resource. Please try again.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions in the README.md to build and deploy the template.
  2. Wait for the failure notification.
  3. Check under Events in the CloudFormation Stack created for the detected root cause.
  4. Confirm that this matches the error message reported above and pertains to the WebsiteS3Bucket resource.

Expected behavior
The deployment should complete successfully with no errors (provided that the values supplied for its config are valid).

Screenshots
N/A

Desktop (please complete the following information):
Not that this is relevant, but here goes:

  • OS: Windows 11 with WSL running Arch
  • Browser: Chrome
  • Version: 130.0.6723.70 (Official Build) (64-bit)

Smartphone (please complete the following information):
N/A

Additional context
Not that this is likely to be relevant, but the contracts deployment option is utilised.
I have diagnosed the issue, and established that it occurs because the WebsiteS3Bucket resource has an unconditional reference to WebsiteS3BucketName, whereas the WebsiteS3Bucket output is conditional. This seems to cause a race condition with CloudFormation, which then results in the operation failing. I have a fix ready, for which I'll submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant