[Docs]: Resource: aws_customer_gateway - ip_address argument is marked as optional
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/customer_gateway#ip_address
Description
Not specifying ip_address parameter in the aws_customer_gateway resource results in this error:
Error: creating EC2 Customer Gateway: MissingParameter: The request must contain the parameter ipAddress
References
No response
Would you like to implement a fix?
None
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please see our prioritization guide for information on how we prioritize.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
I have read this issue thoroughly and I want to solve this ✍️
ip_address is optional. Customer Gateways using public key authentication instead of pre-shared key do not require static IP address.
See https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateCustomerGateway.html
@dthvt that is true, so instead of this being an issue of documentation, this should probably be a bug request.