Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-vpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-vpc
Commits
dea4664b
Unverified
Commit
dea4664b
authored
Mar 11, 2020
by
Ilia Lazebnik
Committed by
GitHub
Mar 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for specifying AZ in VPN Gateway (#401)
parent
ee9271e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
README.md
README.md
+1
-0
main.tf
main.tf
+3
-2
variables.tf
variables.tf
+6
-0
No files found.
README.md
View file @
dea4664b
...
...
@@ -528,6 +528,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| vpc
\_
endpoint
\_
tags | Additional tags for the VPC Endpoints |
`map(string)`
|
`{}`
| no |
| vpc
\_
flow
\_
log
\_
tags | Additional tags for the VPC Flow Logs |
`map(string)`
|
`{}`
| no |
| vpc
\_
tags | Additional tags for the VPC |
`map(string)`
|
`{}`
| no |
| vpn
\_
gateway
\_
az | The Availability Zone for the VPN Gateway |
`string`
| n/a | yes |
| vpn
\_
gateway
\_
id | ID of VPN Gateway to attach to the VPC |
`string`
|
`""`
| no |
| vpn
\_
gateway
\_
tags | Additional tags for the VPN gateway |
`map(string)`
|
`{}`
| no |
...
...
main.tf
View file @
dea4664b
...
...
@@ -1020,8 +1020,9 @@ resource "aws_customer_gateway" "this" {
resource
"aws_vpn_gateway"
"this"
{
count
=
var
.
create_vpc
&&
var
.
enable_vpn_gateway
?
1
:
0
vpc_id
=
local
.
vpc_id
amazon_side_asn
=
var
.
amazon_side_asn
vpc_id
=
local
.
vpc_id
amazon_side_asn
=
var
.
amazon_side_asn
availability_zone
=
var
.
vpn_gateway_az
tags
=
merge
(
{
...
...
variables.tf
View file @
dea4664b
...
...
@@ -1327,6 +1327,12 @@ variable "amazon_side_asn" {
default
=
"64512"
}
variable
"vpn_gateway_az"
{
description
=
"The Availability Zone for the VPN Gateway"
type
=
string
default
=
null
}
variable
"propagate_private_route_tables_vgw"
{
description
=
"Should be true if you want route table propagation"
type
=
bool
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment