Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8 from rackspace-infrastructure-automation/vgw_tr…
Browse files Browse the repository at this point in the history
…ansitvpc

Add tag for TransitVPC
  • Loading branch information
Horacio Fernandez authored Nov 3, 2017
2 parents 8f6cbf4 + be1e713 commit 3a7a227
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ resource "aws_vpn_gateway" "vpn" {
vpc_id = "${aws_vpc.vpc.id}"

tags {
Name = "${format("%s-VPNGateway", var.name)}"
Provisioner = "rackspace"
"Name" = "${format("%s-VPNGateway", var.name)}"
"Provisioner" = "rackspace"
"transitvpc:spoke" = "${var.transit_vpc}"
}
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ variable "vpn_gateways" {
default = "0"
description = "Number of VPN Gateways to provision"
}

# TransitVPC enabled
variable "transit_vpc" {
default = "false"
description = "Enable TransitVPC on this VGW"
}

0 comments on commit 3a7a227

Please sign in to comment.