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

Error while VPN tunnel creation in AWS osaka region #26425

Closed
piyushaggarwal03 opened this issue Aug 22, 2022 · 3 comments · Fixed by #34420
Closed

Error while VPN tunnel creation in AWS osaka region #26425

piyushaggarwal03 opened this issue Aug 22, 2022 · 3 comments · Fixed by #34420
Labels
bug Addresses a defect in current functionality. service/vpnsite Issues and PRs that pertain to the vpnsite service.
Milestone

Comments

@piyushaggarwal03
Copy link

piyushaggarwal03 commented Aug 22, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

2022-08-22T19:20:09.679+0530 [INFO] Terraform version: 1.2.7
2022-08-22T19:20:09.680+0530 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0
2022-08-22T19:20:09.680+0530 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0
2022-08-22T19:20:09.680+0530 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-08-22T19:20:09.680+0530 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-08-22T19:20:09.680+0530 [DEBUG] using github.com/zclconf/go-cty v1.10.0
2022-08-22T19:20:09.680+0530 [INFO] Go runtime version: go1.18.1
2022-08-22T19:20:09.680+0530 [INFO] CLI args: []string{"terraform", "-v"}
2022-08-22T19:20:09.680+0530 [DEBUG] Attempting to open CLI config file: /Users/piaggarw/.terraformrc
2022-08-22T19:20:09.680+0530 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-08-22T19:20:09.680+0530 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-08-22T19:20:09.680+0530 [DEBUG] ignoring non-existing provider search directory /Users/piaggarw/.terraform.d/plugins
2022-08-22T19:20:09.680+0530 [DEBUG] ignoring non-existing provider search directory /Users/piaggarw/Library/Application Support/io.terraform/plugins
2022-08-22T19:20:09.680+0530 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-08-22T19:20:09.680+0530 [INFO] CLI command args: []string{"version", "-v"}
Terraform v1.2.7
on darwin_amd64

  • provider registry.terraform.io/hashicorp/aws v4.27.0

Affected Resource(s)

aws_vpn_connection

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  region     = "ap-northeast-3"
}

resource "aws_vpn_connection" "testvpnconnection" {
  customer_gateway_id = "cgw-0e2de86eede6ca1c7"
  transit_gateway_id  = "tgw-06d2536ac948c1933"
  tunnel1_ike_versions  = ["ikev2"]
  type = "ipsec.1"
  tunnel1_preshared_key = "<Secret>"
}


Debug Output

https://gist.github.com/piyushaggarwal03/ae5eb2e5efbb9fdfdbddedbdc8b45fce

Panic Output

Expected Behavior

Tunnel should have been created in osaka region, same TF code working fine in other regions such as virginia, london

Actual Behavior

Error: error creating EC2 VPN Connection: UnsupportedOperation: The tunnel inside ip version parameter is not currently supported in this region.
│ status code: 400, request id: 9a8f5430-a0bc-4c4d-b9c5-64f97312bd8b

│ with aws_vpn_connection.testvpnconnection,
│ on ec2_resource.tf line 1, in resource "aws_vpn_connection" "testvpnconnection":
│ 1: resource "aws_vpn_connection" "testvpnconnection" {

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/vpnsite Issues and PRs that pertain to the vpnsite service. labels Aug 22, 2022
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 22, 2022
@shirou463
Copy link

In my environment, this error occurs when we use the setting values about any tunnel1_xxxxxx or tunnel2_xxxxxx to Osaka region (ap-northeast-3). However, I can deploy vpn_connection if I don't use "tunnnel1/2-xxxxxx" option and the option "tunnel_inside_ip_version" can be used.

  "version": 4,
  "terraform_version": "1.3.2",

Copy link

This functionality has been released in v5.26.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 Dec 17, 2023
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
3 participants