-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 tag support for aws_codestarconnections_connection resource #16835
Add tag support for aws_codestarconnections_connection resource #16835
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.
Overall this is on the right track, just a few additional things and we will get this in. Thank you, @shuheiktgw 😄
"tags": { | ||
Type: schema.TypeMap, | ||
Optional: true, | ||
ForceNew: 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.
Updating resource tags should not require resource recreation -- we can add an Update
function that only handles tags
. 👍
CheckDestroy: testAccCheckAWSCodeStarConnectionsConnectionDestroy, | ||
Steps: []resource.TestStep{ | ||
{ | ||
Config: testAccAWSCodeStarConnectionsConnectionConfigTags(rName), |
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: Will parameterize this to match the Contributing Guide so it is easier to add the update step.
@@ -68,6 +68,7 @@ The following arguments are supported: | |||
|
|||
* `name` - (Required) The name of the connection to be created. The name must be unique in the calling AWS account. Changing `name` will create a new resource. | |||
* `provider_type` - (Required) The name of the external provider where your third-party code repository is configured. Valid values are `Bitbucket`, `GitHub`, or `GitHubEnterpriseServer`. Changing `provider_type` will create a new resource. | |||
* `tags` - (Optional) An array of key:value pairs to associate with the resource. |
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.
In Terraform the type is map
* `tags` - (Optional) An array of key:value pairs to associate with the resource. | |
* `tags` - (Optional) Map of key-value resource tags to associate with the resource. |
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.
Thank you, @shuheiktgw 🚀
After adding tag update support:
Output from acceptance testing in AWS Commercial:
--- PASS: TestAccAWSCodeStarConnectionsConnection_disappears (10.57s)
--- PASS: TestAccAWSCodeStarConnectionsConnection_Basic (14.06s)
--- PASS: TestAccAWSCodeStarConnectionsConnection_Tags (30.15s)
Output from acceptance testing in AWS GovCloud (US):
--- SKIP: TestAccAWSCodeStarConnectionsConnection_Basic (1.27s)
--- SKIP: TestAccAWSCodeStarConnectionsConnection_disappears (1.27s)
--- SKIP: TestAccAWSCodeStarConnectionsConnection_Tags (1.27s)
This has been released in version 3.28.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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! |
Community Note
Relates #15453
Release note for CHANGELOG:
Output from acceptance testing:
Thank you for your review! 👍