-
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
RAM resource share data source doesn't expose underlying resource_arn #21159
Comments
Hey @gavinclarkeuk 👋 Thank you for taking the time to file this. I took a quick look, and it looks like this would need to use a slightly different API endpoint; the ListResource endpoint (relevant portion of the SDK can be found here). I say this mostly as initial information for anyone who might pick this up to work on. In the meantime, for your particular situation, are you creating the share using a aws_ram_resource_share resource and a aws_ram_resource_association resource? If so, perhaps you could output the ARN from there? |
Hey @justinretzolk, we are creating the share using an And in case anyone was wondering why I don't just use the This isn't a huge issue for us, it just felt like a gap in the current implementation that should be reasonably simple to fix. |
Thank you for the additional information and context @gavinclarkeuk! I've added labels so that we can look into this as soon as time permits. Thank you again for your feedback! |
Based on implementation in resource_share_accepter.go Closes hashicorp#21159
I took a shot at implementing this! Check out #22591 😄 |
Would it be possible to export other information about the underlying shared resource as well? I'd like to use the RAM data source to link to a shared Transit Gateway, and most related APIs deal with the TGW ID, not its ARN. The ID is of the form As an alternative, I tried to obtain the ID from the ARN with a |
This functionality has been released in v5.13.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. Thank you! |
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. |
Community Note
Description
There isn't currently anyway to get the ARN of the underlying resource of a ram_resource_share via terraform. There is an existing ram_resource_share data source, but the attributes only relate to the share itself, not the underlying resource.
For example we've shared a an ACM Private CA in our org and we want to provide engineers a clean way of issuing certificates via terraform. To do that they need to provide the ARN of the Private CA. The only way we can do this right now is hard coding the arn, which is nasty.
New or Affected Resource(s)
Potential Terraform Configuration
Would like to be able to do something like this:
References
The text was updated successfully, but these errors were encountered: