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

VPN Connection Tunnels incorrectly ordered #10411

Closed
kitforbes opened this issue Nov 29, 2016 · 1 comment
Closed

VPN Connection Tunnels incorrectly ordered #10411

kitforbes opened this issue Nov 29, 2016 · 1 comment

Comments

@kitforbes
Copy link

Terraform Version

Terraform v0.7.13

Affected Resource(s)

  • aws_vpn_connection

Terraform Configuration Files

module "vpc" {
  source = "../../../modules/aws/network/vpc"

  name        = "${var.name}-vpc"
  environment = "${var.environment}"
  cidr        = "${var.vpc_cidr}"
}

resource "aws_customer_gateway" "edinburgh" {
  type       = "${var.vpn_connection_type}"
  bgp_asn    = "${var.vpn_bgs_asn}"
  ip_address = "${var.vpn_local_ip}"

  tags {
    Name        = "${var.name}-customer-gateway"
    Environment = "${var.environment}"
    Creator     = "Terraform"
  }
}

resource "aws_vpn_gateway" "edinburgh" {
  vpc_id = "${module.vpc.vpc_id}"

  tags {
    Name        = "${var.name}-edinburgh"
    Environment = "${var.environment}"
    Creator     = "Terraform"
  }
}

resource "aws_vpn_connection" "edinburgh" {
  vpn_gateway_id      = "${aws_vpn_gateway.edinburgh.id}"
  customer_gateway_id = "${aws_customer_gateway.edinburgh.id}"
  type                = "${var.vpn_connection_type}"
  static_routes_only  = true

  tags {
    Name        = "${var.name}-edinburgh"
    Environment = "${var.environment}"
    Creator     = "Terraform"
  }
}

output "vpn_config" {
  value = <<CONFIGURATION

  Tunnel 1
    Address:     ${aws_vpn_connection.edinburgh.tunnel1_address}
  Tunnel 2
    Address:     ${aws_vpn_connection.edinburgh.tunnel2_address}
CONFIGURATION
}

Expected Behavior

${aws_vpn_connection.edinburgh.tunnel1_address} should output the value of Tunnel 1 in the AWS Console.

Actual Behavior

It actually outputs the value of tunnel 2, and tunnel 2 outputs the value of tunnel 1. Not a critical issue by any means.

Steps to Reproduce

Create an AWS VPN connection and compare the Terraform output to actual AWS Console information in the VPC section.

@ghost
Copy link

ghost commented Apr 10, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants