-
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 an aws_resource_group
resource for managing AWS resource groups
#6217
Conversation
…cegroups@v1.15.57 Updates: * `govendor fetch github.com/aws/aws-sdk-go/...@v1.15.57` * `govendor fetch github.com/aws/aws-sdk-go/service/resourcegroups@v1.15.57`
…s/terraform-provider-aws into jstump-resource-groups-sdk
aws_resource_group
resource for managing AWS resource groupsaws_resource_group
resource for managing AWS resource groups
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.
Thanks for submitting this @joestump! Initial feedback left below. Please reach out with any questions.
Oh! I would also recommend naming the resource (and updating file names) to |
@bflad I think comments have been addressed. 👍 |
aws_resource_group
resource for managing AWS resource groupsaws_resource_group
resource for managing AWS resource groups
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.
Two more little things and this should be good to go, thanks so much!
|
||
## Import | ||
|
||
IAM Users can be imported using the `name`, e.g. |
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.
Copypasta here and the example command 🍝 😄
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.
Ha! Literally had that committed about 30 minutes ago and forgot to push
. 🤦♂️
@bflad I've got an interesting issue with this resource. Turns out you can set tags when you call My proposal would be to:
The other option would be to remove this attribute entirely I guess? I've sent an email to our AWS TAM asking they make the tags retrievable. |
FYI |
I'll give |
@bflad okay, so looking over these endpoints I've got a new proposal for this. I think we should remove tags from this resource and create two additional resources:
The nice thing about this is that it works for any ARN. Thoughts? |
@joestump are you positive that those API calls are intended for outside Resource Groups themselves? e.g. https://docs.aws.amazon.com/ARG/latest/APIReference/API_GetTags.html
https://docs.aws.amazon.com/ARG/latest/APIReference/API_Tag.html
Either way, the group itself should support tagging via the above. |
The API for tagging resources via resource groups is separate and can be found here: |
@bflad BRB learning to read good. |
Hey @joestump 👋 Will you have time to circle back and finish this up? If not, no problem. |
@bflad I should be able to. Sorry for the delay, the usual things have kept me from revisiting lately. |
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.
Hey @joestump 👋 Since its been two months and we haven't heard anything, I went ahead and made the minor adjustments (8375b2f) so we could ship at least the initial aws_resourcegroups_group
resource without tagging support. I'll create a followup issue for adding that in that you or anyone else can pick. Thanks for your work here! 🚀
Output from acceptance testing:
--- PASS: TestAccAWSResourceGroup_basic (20.04s)
This has been released in version 1.55.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
@bflad sorry for going MIA. Got slammed with a big deadline at work. I've got tagging with proper tests and whatnot locally. I'll try and clean it up for PR soon! |
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! |
What is the purpose of this PR?
Introduces an
aws_resource_group
resource.Example HCL
Test outputs
TODO