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

fix: skip creating deployments if current and target versions match #85

Conversation

dominics
Copy link
Contributor

@dominics dominics commented Dec 11, 2020

It appears AWS CodeDeploy will reject deployments where the CurrentVersion and TargetVersion match (edit: if the deployment config is anything other than all-at-once, e.g. canary or linear rollout). We avoid creating such a failing deployment by ignoring cases where the current and target versions already match in the deploy script.

Fixes #82, where there's a lot more detail on the motivation here.

modules/deploy/main.tf Outdated Show resolved Hide resolved
@antonbabenko antonbabenko merged commit 1c3590a into terraform-aws-modules:master Jan 14, 2021
@antonbabenko
Copy link
Member

v1.34.0 has been just released.

👍

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After a successful deploy, next run will cause a failed deploy if target version is not updated
2 participants