-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Add Blue/Green Deployments to CodeDeploy DeploymentGroups. #11700
Add Blue/Green Deployments to CodeDeploy DeploymentGroups. #11700
Conversation
I believe this PR is complete. NOTES:
Consider the following exceptions:
However, until more information is available, I went with the official docs.
|
For reference, here are some other encountered exceptions:
NOTE: The schema does not enforce this restriction.
|
12e3571
to
2fc29b4
Compare
Changes:
@stack72 This should be good to go. |
Argh! |
In light of the change in #13396, what is the preferred approach to documenting new features? I've added several features to CodeDeploy Deployment Group, and this PR in particular contains a lot of new documentation. I've tried to strike a balance between being informative and rote duplication of the AWS docs, but perhaps I've erred too much in favor of too much detail. And it's not just documentation. I've asked this question before when adding validation functions (including in my comments for this PR). When options change (either new ones are added or worse, existing options are removed), terraform needs to be updated to maintain parity with the sdk. If changes are caught and merged quickly, then perhaps it's not much of an issue, but that doesn't seem to always be the case in my experience. I've added several such validation functions in this PR (e.g. see Then again, I'm not sure how much of a problem this really is. If you enter an invalid option, that's on you. Any feedback is welcome. /cc @radeksimko |
- improved create test - added update test - added delete test, which displays unexpected behaviour
- Not sure why this test does not pass as is. - After the update, I would expect to see no load_balancer_info.
- don't check computed attribute values (they could change)
- to make it easier to run them all together.
- deployment_style - load_balancer_info - blue_green_deployment_config - cleanup
0cbd4dd
to
b895964
Compare
Okay, this has been rebased again to remove documentation conflicts. Unfotunately, the
I will have to investigate. |
Hmm. That was unexpected. All tests pass ^^^. And yet, I get (admittedly unexpected) failures locally. I have found an issue which explains the test failures. This must have crept in somehow, perhaps through an update to the SDK. Even though the tests pass here, I am going to push another update. |
When creating deployments that use traffic control: deployment_style {
deployment_option = "WITH_TRAFFIC_CONTROL"
deployment_type = "BLUE_GREEN"
} Then you MUST also create a As noted above, there are a lot of implicit invariants in this new set of resources. This is one more. |
I think we are good to go here. @stack72 |
Any reason why this can't be merged? @stack72 Looks like it would make many people happy. :) |
Pleaseeeeeeeee |
Is there any word on the progress of merging this PR? Thanks! |
@stack72 ^^^ |
This is something we would like to integrate in our systems, much appreciated @niclic |
I also need this just for |
This PR has been migrated here: hashicorp/terraform-provider-aws#1162 Please add your reactions of support to the new PR. I will close this once the new PR has been merged. :) |
This has been merged in hashicorp/terraform-provider-aws#1162. Thank you to @radeksimko for all his help in getting this done! |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This PR has been migrated here: hashicorp/terraform-provider-aws#1162
TODO:
Changes to the
aws_codedeploy_deployment_group
resource:deployment_style
.load_balancer_info
.blue_green_deployment_config
.buildDeploymentStyle
anddeploymentStyleToMap
blue_green_deployment_config
values.