-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Addresses a number of issues with blocks in aws_codedeploy_deployment_group
#11648
Conversation
…ue_green_deployment_config` if it is not set
@@ -42,6 +42,9 @@ func TestAccAWSCodeDeployDeploymentGroup_basic(t *testing.T) { | |||
"aws_codedeploy_deployment_group.foo", "service_role_arn", | |||
regexp.MustCompile("arn:aws:iam::[0-9]{12}:role/foo_role_.*")), | |||
|
|||
resource.TestCheckResourceAttr( | |||
"aws_codedeploy_deployment_group.foo", "blue_green_deployment_config.#", "0"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're in here, you can clean up those foo
bits to be our standard test
naming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
--- PASS: TestAccAWSCodeDeployDeploymentGroup_disappears (28.53s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_in_place_deployment_with_traffic_control_update (40.55s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_deploymentStyle_delete (41.86s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_loadBalancerInfo_delete (43.50s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_loadBalancerInfo_targetGroupInfo_update (43.85s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_blueGreenDeploymentConfiguration_delete (47.80s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_in_place_deployment_with_traffic_control_create (48.43s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_autoRollbackConfiguration_delete (57.04s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_blueGreenDeploymentConfiguration_update (57.72s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_blueGreenDeployment_complete (58.83s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_loadBalancerInfo_targetGroupInfo_delete (58.88s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_triggerConfiguration_multiple (60.46s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_triggerConfiguration_basic (62.00s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_loadBalancerInfo_targetGroupInfo_create (66.91s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_autoRollbackConfiguration_update (67.40s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_loadBalancerInfo_update (46.79s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_autoRollbackConfiguration_disable (75.66s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_loadBalancerInfo_create (42.97s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_deploymentStyle_update (40.18s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_basic (88.18s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_deploymentStyle_default (45.64s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_deploymentStyle_create (47.15s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_alarmConfiguration_disable (51.68s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_onPremiseTag (54.50s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_alarmConfiguration_update (39.90s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_alarmConfiguration_create (39.73s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_autoRollbackConfiguration_create (41.48s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_alarmConfiguration_delete (39.94s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_basic_tagSet (56.12s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_blueGreenDeploymentConfiguration_create (132.81s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_blueGreenDeploymentConfiguration_update_with_asg (148.93s)
--- PASS: TestAccAWSCodeDeployDeploymentGroup_ECS_BlueGreen (280.61s)
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Unexpected behaviour occurs with some block attributes of
aws_codedeploy_deployment_group
when blocks are updated or deleted.This PR now:
load_balancer_info
via the API and state when the block is removed from the resource configuration. This would also previously prevent setting values onload_balancer_info
if it had been removed from the configuration. See aws_codedeploy_deployment_group issues with load_balancer_info #10836deployment_style
to defaults if it is removed from configuration. Previously, this would do nothing to the resource in AWS.Community Note
Closes #10836
Release note for CHANGELOG:
Output from acceptance testing: