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
81f60d33
Unverified
Commit
81f60d33
authored
Mar 24, 2020
by
Ilia Lazebnik
Committed by
GitHub
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add intra subnet VPN route propagation (#421)
parent
88d2c3c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
README.md
README.md
+1
-0
main.tf
main.tf
+13
-0
variables.tf
variables.tf
+6
-0
No files found.
README.md
View file @
81f60d33
...
@@ -457,6 +457,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
...
@@ -457,6 +457,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| private
\_
subnet
\_
suffix | Suffix to append to private subnets name |
`string`
|
`"private"`
| no |
| private
\_
subnet
\_
suffix | Suffix to append to private subnets name |
`string`
|
`"private"`
| no |
| private
\_
subnet
\_
tags | Additional tags for the private subnets |
`map(string)`
|
`{}`
| no |
| private
\_
subnet
\_
tags | Additional tags for the private subnets |
`map(string)`
|
`{}`
| no |
| private
\_
subnets | A list of private subnets inside the VPC |
`list(string)`
|
`[]`
| no |
| private
\_
subnets | A list of private subnets inside the VPC |
`list(string)`
|
`[]`
| no |
| propagate
\_
intra
\_
route
\_
tables
\_
vgw | Should be true if you want route table propagation |
`bool`
|
`false`
| no |
| propagate
\_
private
\_
route
\_
tables
\_
vgw | Should be true if you want route table propagation |
`bool`
|
`false`
| no |
| propagate
\_
private
\_
route
\_
tables
\_
vgw | Should be true if you want route table propagation |
`bool`
|
`false`
| no |
| propagate
\_
public
\_
route
\_
tables
\_
vgw | Should be true if you want route table propagation |
`bool`
|
`false`
| no |
| propagate
\_
public
\_
route
\_
tables
\_
vgw | Should be true if you want route table propagation |
`bool`
|
`false`
| no |
| public
\_
acl
\_
tags | Additional tags for the public subnets network ACL |
`map(string)`
|
`{}`
| no |
| public
\_
acl
\_
tags | Additional tags for the public subnets network ACL |
`map(string)`
|
`{}`
| no |
...
...
main.tf
View file @
81f60d33
...
@@ -1066,6 +1066,19 @@ resource "aws_vpn_gateway_route_propagation" "private" {
...
@@ -1066,6 +1066,19 @@ resource "aws_vpn_gateway_route_propagation" "private" {
)
)
}
}
resource
"aws_vpn_gateway_route_propagation"
"intra"
{
count
=
var
.
create_vpc
&&
var
.
propagate_intra_route_tables_vgw
&&
(
var
.
enable_vpn_gateway
||
var
.
vpn_gateway_id
!
=
""
)
?
length
(
var
.
intra_subnets
)
:
0
route_table_id
=
element
(
aws_route_table
.
intra
.*.
id
,
count
.
index
)
vpn_gateway_id
=
element
(
concat
(
aws_vpn_gateway
.
this
.*.
id
,
aws_vpn_gateway_attachment
.
this
.*.
vpn_gateway_id
,
),
count
.
index
,
)
}
###########
###########
# Defaults
# Defaults
###########
###########
...
...
variables.tf
View file @
81f60d33
...
@@ -1333,6 +1333,12 @@ variable "vpn_gateway_az" {
...
@@ -1333,6 +1333,12 @@ variable "vpn_gateway_az" {
default
=
null
default
=
null
}
}
variable
"propagate_intra_route_tables_vgw"
{
description
=
"Should be true if you want route table propagation"
type
=
bool
default
=
false
}
variable
"propagate_private_route_tables_vgw"
{
variable
"propagate_private_route_tables_vgw"
{
description
=
"Should be true if you want route table propagation"
description
=
"Should be true if you want route table propagation"
type
=
bool
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