terraform-provider-aws icon indicating copy to clipboard operation
terraform-provider-aws copied to clipboard

[Docs]: Resource: aws_customer_gateway - ip_address argument is marked as optional

Open peterbratu opened this issue 1 year ago • 3 comments

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

peterbratu avatar May 15 '24 22:05 peterbratu

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.

github-actions[bot] avatar May 15 '24 22:05 github-actions[bot]

I have read this issue thoroughly and I want to solve this ✍️

CodeSinghh avatar May 19 '24 10:05 CodeSinghh

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 avatar May 23 '24 15:05 dthvt

@dthvt that is true, so instead of this being an issue of documentation, this should probably be a bug request.

Bexanderthebex avatar Nov 29 '24 01:11 Bexanderthebex