-
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
r/ecs_service: add enable_ecs_managed_tags attribute #6544
Conversation
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.
LGTM, thanks @kl4w! 🚀
--- PASS: TestAccAWSEcsService_withDaemonSchedulingStrategy (10.61s)
--- PASS: TestAccAWSEcsService_withARN (12.47s)
--- PASS: TestAccAWSEcsService_withPlacementConstraints (12.62s)
--- PASS: TestAccAWSEcsService_withFamilyAndRevision (14.01s)
--- PASS: TestAccAWSEcsService_withEcsClusterName (16.04s)
--- PASS: TestAccAWSEcsService_disappears (21.21s)
--- PASS: TestAccAWSEcsService_withReplicaSchedulingStrategy (11.30s)
--- PASS: TestAccAWSEcsService_withIamRole (25.95s)
--- PASS: TestAccAWSEcsService_withDaemonSchedulingStrategySetDeploymentMinimum (27.20s)
--- PASS: TestAccAWSEcsService_withUnnormalizedPlacementStrategy (34.30s)
--- PASS: TestAccAWSEcsService_basicImport (34.55s)
--- PASS: TestAccAWSEcsService_withPlacementConstraints_emptyExpression (34.75s)
--- PASS: TestAccAWSEcsService_ManagedTags (19.14s)
--- PASS: TestAccAWSEcsService_withDeploymentMinimumZeroMaximumOneHundred (44.19s)
--- PASS: TestAccAWSEcsService_withDeploymentValues (44.33s)
--- PASS: TestAccAWSEcsService_withLaunchTypeEC2AndNetworkConfiguration (45.47s)
--- PASS: TestAccAWSEcsService_Tags (34.96s)
--- PASS: TestAccAWSEcsService_withPlacementStrategy (58.90s)
--- PASS: TestAccAWSEcsService_withRenamedCluster (65.43s)
--- PASS: TestAccAWSEcsService_withLbChanges (125.63s)
--- PASS: TestAccAWSEcsService_healthCheckGracePeriodSeconds (166.39s)
--- PASS: TestAccAWSEcsService_withServiceRegistries_container (168.80s)
--- PASS: TestAccAWSEcsService_withServiceRegistries (178.79s)
--- PASS: TestAccAWSEcsService_withAlb (206.57s)
--- PASS: TestAccAWSEcsService_withLaunchTypeFargate (234.57s)
Check: resource.ComposeTestCheckFunc( | ||
testAccCheckAWSEcsServiceExists(resourceName, &service), | ||
resource.TestCheckResourceAttr(resourceName, "tags.%", "1"), | ||
resource.TestCheckResourceAttr(resourceName, "enable_ecs_managed_tags", "true"), |
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.
Nit: Generally its good to verify the default value in one of the "basic" acceptance tests somewhere too 👍
This was released (4 days ago) in version 1.47.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
@@ -56,6 +56,12 @@ func resourceAwsEcsService() *schema.Resource { | |||
}, | |||
}, | |||
|
|||
"enable_ecs_managed_tags": { |
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.
should this be setting ForceNew: true
? From what I can see, this property is only configurable during the initial creation of a service and not for UpdateService
API. If I try to flip it on for an existing service, TF plan repeatedly tries to re-set it back to true because the updates aren't going through.
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! |
Fixes #6542
Changes proposed in this pull request:
enable_ecs_managed_tags
attributeOutput from acceptance testing: