Skip to content
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

[Bug]: custom tunnel*_inside_ipv6_cidr should not have dependency on the present of transit_gateway_id #36075

Closed
tmatty102 opened this issue Mar 4, 2024 · 3 comments · Fixed by #36405
Labels
bug Addresses a defect in current functionality. service/vpnsite Issues and PRs that pertain to the vpnsite service.
Milestone

Comments

@tmatty102
Copy link

tmatty102 commented Mar 4, 2024

Description

When specifying the "Inside IPv6 CIDR" for VPN tunnels, the provider requires specifying a Transit Gateway ID.
In the case of working with Cloud WAN attachment, the Transit Gateway is not necessary. thus, TF exit with error message

| Error: Missing required argument

│ with module.cloudwan-gcp-vpn.aws_vpn_connection.vpn-alpha,
│ on ........ in resource "aws_vpn_connection" "vpn-alpha":
│ 136: tunnel1_inside_ipv6_cidr = var.alpha_tunnel1_inside_ipv6_cidr

│ "tunnel1_inside_ipv6_cidr": all of transit_gateway_id,tunnel1_inside_ipv6_cidr must be specified

the corresponding CLI request to create the vpn_connection without specifying the transit gateway id but still able to provide tunnel options for custom inside IPc6 CIDR

aws ec2 create-vpn-connection
--customer-gateway-id cgw-0e8e8f909f51e6b70
--type ipsec.1
--options TunnelInsideIpVersion=ipv6,TunnelOptions='[{TunnelInsideIpv6Cidr=fdff:1::6:0/126},{TunnelInsideIpv6Cidr=fdff:1::7:0/126}]'

response

"CustomerGatewayId": "cgw-0e8e8f909f51e6b70",
"Category": "VPN",
"State": "pending",
"VpnConnectionId": "vpn-014ec04af94661dab",
"GatewayAssociationState": "not-associated",
"Options": {
"EnableAcceleration": false,
"StaticRoutesOnly": false,
"LocalIpv6NetworkCidr": "::/0",
"RemoteIpv6NetworkCidr": "::/0",
"OutsideIpAddressType": "PublicIpv4",
"TunnelInsideIpVersion": "ipv6",

Affected Resource(s) and/or Data Source(s)

aws_vpn_connection

Potential Terraform Configuration

No response

References

https://docs.aws.amazon.com/vpn/latest/s2svpn/create-cwan-vpn-attachment.html

Would you like to implement a fix?

Yes

@tmatty102 tmatty102 added the enhancement Requests to existing resources that expand the functionality or scope. label Mar 4, 2024
Copy link

github-actions bot commented Mar 4, 2024

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.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 4, 2024
@github-actions github-actions bot added the service/vpnsite Issues and PRs that pertain to the vpnsite service. label Mar 4, 2024
@tmatty102 tmatty102 changed the title [Enhancement]: custom tunnel*_inside_ipv6_cidr work with CWAN/core network [Enhancement]: custom tunnel*_inside_ipv6_cidr should not have dependency on the present of transit_gateway_id Mar 4, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Mar 7, 2024
@tmatty102 tmatty102 changed the title [Enhancement]: custom tunnel*_inside_ipv6_cidr should not have dependency on the present of transit_gateway_id [Bug]: custom tunnel*_inside_ipv6_cidr should not have dependency on the present of transit_gateway_id Mar 15, 2024
@github-actions github-actions bot added the bug Addresses a defect in current functionality. label Mar 15, 2024
@justinretzolk justinretzolk removed the enhancement Requests to existing resources that expand the functionality or scope. label Mar 18, 2024
@github-actions github-actions bot added this to the v5.42.0 milestone Mar 20, 2024
Copy link

This functionality has been released in v5.42.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!

Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/vpnsite Issues and PRs that pertain to the vpnsite service.
Projects
None yet
2 participants