NAT gateway with nat_ip_allocate_option=AUTO, no ip address output #37
Labels
enhancement
New feature or request
P3
medium priority issues
triaged
Scoped and ready for work
upstream
Work required on Terraform core or provider
Issue summary:
When creating a nat gateway with nat_ip_allocate_option=AUTO_ONLY, the nat gateway terraform module does not output the ip addresses that were assigned to the nat gateway. Deriving the ip address that is assigned to the nat gateway would involve a data resource, and doesn’t feel like best practice
I would expect the ip address to be outputted in the nat_ips array. The documentation suggests that this field is ignored if AUTO_ONLY is set, but it’s ambiguous if this extends to the outputted data.
I’d either expect there to be a different output for ips outright, or for the nat_ips array to be populated regardless of the nat_ip_allocate_option value
Steps to reproduce:
Create a NAT gateway with terraform. Set
"nat_ip_allocate_option" = "AUTO_ONLY"
. Try to get IP address out of"nat_ips" = []
and see that it's blank.The text was updated successfully, but these errors were encountered: