-
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
Expose naked aws_mq_broker hostname #5913
Comments
The AWS SDK exposes an IpAddress field on every Broker Instance - https://docs.aws.amazon.com/sdk-for-go/api/service/mq/#BrokerInstance - if my understanding is correct, that should allow this to be supported fairly easily. I'd like to have a go at putting together a PR for this issue as my first Terraform contribution - so keep your eyes peeled :) |
It's worth noting that the IpAddress field of course lists only the IP Address and not the exact same |
I just opened a PR to add the new |
That is perfect @chrislewisdev! Thanks a lot. |
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
Description
Currently
aws_mq_broker
resources only expose their hostname viaconsole_url
and theendpoints
list under theinstances
list:I'd like to access the hostname directly in order to create CNAME for it. At the time I’m using multiple
replace()
calls to remove the protocol and port but it's kind of a pain, plus the nested structure makes it quite difficult to access them when using an arbitrary number of instances.Maybe a
hostname
attribute on theinstances
field would help.New or Affected Resource(s)
The text was updated successfully, but these errors were encountered: