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
ec5a0d26
Unverified
Commit
ec5a0d26
authored
Aug 13, 2020
by
Ilia Lazebnik
Committed by
GitHub
Aug 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add arn outputs for: igw, cgw, vgw, default vpc, acls (#471)
parent
bbf935e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
4 deletions
+82
-4
README.md
README.md
+13
-3
README.md
examples/network-acls/README.md
+3
-0
outputs.tf
examples/network-acls/outputs.tf
+15
-0
outputs.tf
outputs.tf
+50
-0
versions.tf
versions.tf
+1
-1
No files found.
README.md
View file @
ec5a0d26
...
...
@@ -41,7 +41,7 @@ Sponsored by [Cloudcraft - the best way to draw AWS diagrams](https://cloudcraft
## Terraform versions
Terraform 0.12. Pin module version to
`~> v2.0`
. Submit pull-requests to
`master`
branch.
Terraform 0.12
and newer
. Pin module version to
`~> v2.0`
. Submit pull-requests to
`master`
branch.
Terraform 0.11. Pin module version to
`~> v1.0`
. Submit pull-requests to
`terraform011`
branch.
...
...
@@ -225,13 +225,13 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| Name | Version |
|------|---------|
| terraform | >= 0.12.7, < 0.14 |
| aws | >= 2.
57
, < 4.0 |
| aws | >= 2.
68
, < 4.0 |
## Providers
| Name | Version |
|------|---------|
| aws | >= 2.
57
, < 4.0 |
| aws | >= 2.
68
, < 4.0 |
## Inputs
...
...
@@ -618,10 +618,12 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| Name | Description |
|------|-------------|
| azs | A list of availability zones specified as argument to this module |
| cgw
\_
arns | List of ARNs of Customer Gateway |
| cgw
\_
ids | List of IDs of Customer Gateway |
| database
\_
internet
\_
gateway
\_
route
\_
id | ID of the database internet gateway route. |
| database
\_
ipv6
\_
egress
\_
route
\_
id | ID of the database IPv6 egress route. |
| database
\_
nat
\_
gateway
\_
route
\_
ids | List of IDs of the database nat gateway route. |
| database
\_
network
\_
acl
\_
arn | ARN of the database network ACL |
| database
\_
network
\_
acl
\_
id | ID of the database network ACL |
| database
\_
route
\_
table
\_
association
\_
ids | List of IDs of the database route table association |
| database
\_
route
\_
table
\_
ids | List of IDs of database route tables |
...
...
@@ -633,6 +635,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| default
\_
network
\_
acl
\_
id | The ID of the default network ACL |
| default
\_
route
\_
table
\_
id | The ID of the default route table |
| default
\_
security
\_
group
\_
id | The ID of the security group created by default on VPC creation |
| default
\_
vpc
\_
arn | The ARN of the VPC |
| default
\_
vpc
\_
cidr
\_
block | The CIDR block of the VPC |
| default
\_
vpc
\_
default
\_
network
\_
acl
\_
id | The ID of the default network ACL |
| default
\_
vpc
\_
default
\_
route
\_
table
\_
id | The ID of the default route table |
...
...
@@ -643,6 +646,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| default
\_
vpc
\_
instance
\_
tenancy | Tenancy of instances spin up within VPC |
| default
\_
vpc
\_
main
\_
route
\_
table
\_
id | The ID of the main route table associated with this VPC |
| egress
\_
only
\_
internet
\_
gateway
\_
id | The ID of the egress only Internet Gateway |
| elasticache
\_
network
\_
acl
\_
arn | ARN of the elasticache network ACL |
| elasticache
\_
network
\_
acl
\_
id | ID of the elasticache network ACL |
| elasticache
\_
route
\_
table
\_
association
\_
ids | List of IDs of the elasticache route table association |
| elasticache
\_
route
\_
table
\_
ids | List of IDs of elasticache route tables |
...
...
@@ -652,7 +656,9 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| elasticache
\_
subnets | List of IDs of elasticache subnets |
| elasticache
\_
subnets
\_
cidr
\_
blocks | List of cidr
\_
blocks of elasticache subnets |
| elasticache
\_
subnets
\_
ipv6
\_
cidr
\_
blocks | List of IPv6 cidr
\_
blocks of elasticache subnets in an IPv6 enabled VPC |
| igw
\_
arn | The ARN of the Internet Gateway |
| igw
\_
id | The ID of the Internet Gateway |
| intra
\_
network
\_
acl
\_
arn | ARN of the intra network ACL |
| intra
\_
network
\_
acl
\_
id | ID of the intra network ACL |
| intra
\_
route
\_
table
\_
association
\_
ids | List of IDs of the intra route table association |
| intra
\_
route
\_
table
\_
ids | List of IDs of intra route tables |
...
...
@@ -666,6 +672,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| natgw
\_
ids | List of NAT Gateway IDs |
| private
\_
ipv6
\_
egress
\_
route
\_
ids | List of IDs of the ipv6 egress route. |
| private
\_
nat
\_
gateway
\_
route
\_
ids | List of IDs of the private nat gateway route. |
| private
\_
network
\_
acl
\_
arn | ARN of the private network ACL |
| private
\_
network
\_
acl
\_
id | ID of the private network ACL |
| private
\_
route
\_
table
\_
association
\_
ids | List of IDs of the private route table association |
| private
\_
route
\_
table
\_
ids | List of IDs of private route tables |
...
...
@@ -675,6 +682,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| private
\_
subnets
\_
ipv6
\_
cidr
\_
blocks | List of IPv6 cidr
\_
blocks of private subnets in an IPv6 enabled VPC |
| public
\_
internet
\_
gateway
\_
ipv6
\_
route
\_
id | ID of the IPv6 internet gateway route. |
| public
\_
internet
\_
gateway
\_
route
\_
id | ID of the internet gateway route. |
| public
\_
network
\_
acl
\_
arn | ARN of the public network ACL |
| public
\_
network
\_
acl
\_
id | ID of the public network ACL |
| public
\_
route
\_
table
\_
association
\_
ids | List of IDs of the public route table association |
| public
\_
route
\_
table
\_
ids | List of IDs of public route tables |
...
...
@@ -682,6 +690,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| public
\_
subnets | List of IDs of public subnets |
| public
\_
subnets
\_
cidr
\_
blocks | List of cidr
\_
blocks of public subnets |
| public
\_
subnets
\_
ipv6
\_
cidr
\_
blocks | List of IPv6 cidr
\_
blocks of public subnets in an IPv6 enabled VPC |
| redshift
\_
network
\_
acl
\_
arn | ARN of the redshift network ACL |
| redshift
\_
network
\_
acl
\_
id | ID of the redshift network ACL |
| redshift
\_
public
\_
route
\_
table
\_
association
\_
ids | List of IDs of the public redshidt route table association |
| redshift
\_
route
\_
table
\_
association
\_
ids | List of IDs of the redshift route table association |
...
...
@@ -692,6 +701,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| redshift
\_
subnets
\_
cidr
\_
blocks | List of cidr
\_
blocks of redshift subnets |
| redshift
\_
subnets
\_
ipv6
\_
cidr
\_
blocks | List of IPv6 cidr
\_
blocks of redshift subnets in an IPv6 enabled VPC |
| this
\_
customer
\_
gateway | Map of Customer Gateway attributes |
| vgw
\_
arn | The ARN of the VPN Gateway |
| vgw
\_
id | The ID of the VPN Gateway |
| vpc
\_
arn | The ARN of the VPC |
| vpc
\_
cidr
\_
block | The CIDR block of the VPC |
...
...
examples/network-acls/README.md
View file @
ec5a0d26
...
...
@@ -36,11 +36,14 @@ No input.
| Name | Description |
|------|-------------|
| default
\_
network
\_
acl
\_
id | The ID of the default network ACL |
| elasticache
\_
network
\_
acl
\_
arn | ARN of the elasticache network ACL |
| elasticache
\_
network
\_
acl
\_
id | ID of the elasticache network ACL |
| module
\_
vpc | Module VPC |
| nat
\_
public
\_
ips | List of public Elastic IPs created for AWS NAT Gateway |
| private
\_
network
\_
acl
\_
arn | ARN of the private network ACL |
| private
\_
network
\_
acl
\_
id | ID of the private network ACL |
| private
\_
subnets | List of IDs of private subnets |
| public
\_
network
\_
acl
\_
arn | ARN of the public network ACL |
| public
\_
network
\_
acl
\_
id | ID of the public network ACL |
| public
\_
subnets | List of IDs of public subnets |
| vpc
\_
cidr
\_
block | The CIDR block of the VPC |
...
...
examples/network-acls/outputs.tf
View file @
ec5a0d26
...
...
@@ -53,6 +53,21 @@ output "default_network_acl_id" {
value
=
module
.
vpc
.
default_network_acl_id
}
output
"public_network_acl_arn"
{
description
=
"ARN of the public network ACL"
value
=
module
.
vpc
.
public_network_acl_arn
}
output
"private_network_acl_arn"
{
description
=
"ARN of the private network ACL"
value
=
module
.
vpc
.
private_network_acl_arn
}
output
"elasticache_network_acl_arn"
{
description
=
"ARN of the elasticache network ACL"
value
=
module
.
vpc
.
elasticache_network_acl_arn
}
output
"module_vpc"
{
description
=
"Module VPC"
value
=
module
.
vpc
...
...
outputs.tf
View file @
ec5a0d26
...
...
@@ -333,6 +333,11 @@ output "igw_id" {
value
=
concat
(
aws_internet_gateway
.
this
.*.
id
,
[
""
]
)
[
0
]
}
output
"igw_arn"
{
description
=
"The ARN of the Internet Gateway"
value
=
concat
(
aws_internet_gateway
.
this
.*.
arn
,
[
""
]
)
[
0
]
}
output
"egress_only_internet_gateway_id"
{
description
=
"The ID of the egress only Internet Gateway"
value
=
concat
(
aws_egress_only_internet_gateway
.
this
.*.
id
,
[
""
]
)
[
0
]
...
...
@@ -343,6 +348,11 @@ output "cgw_ids" {
value
=
[
for
k
,
v
in
aws_customer_gateway
.
this
:
v
.
id
]
}
output
"cgw_arns"
{
description
=
"List of ARNs of Customer Gateway"
value
=
[
for
k
,
v
in
aws_customer_gateway
.
this
:
v
.
arn
]
}
output
"this_customer_gateway"
{
description
=
"Map of Customer Gateway attributes"
value
=
aws_customer_gateway
.
this
...
...
@@ -357,11 +367,21 @@ output "vgw_id" {
)
[
0
]
}
output
"vgw_arn"
{
description
=
"The ARN of the VPN Gateway"
value
=
concat
(
aws_vpn_gateway
.
this
.*.
arn
,
[
""
]
)
[
0
]
}
output
"default_vpc_id"
{
description
=
"The ID of the VPC"
value
=
concat
(
aws_default_vpc
.
this
.*.
id
,
[
""
]
)
[
0
]
}
output
"default_vpc_arn"
{
description
=
"The ARN of the VPC"
value
=
concat
(
aws_default_vpc
.
this
.*.
arn
,
[
""
]
)
[
0
]
}
output
"default_vpc_cidr_block"
{
description
=
"The CIDR block of the VPC"
value
=
concat
(
aws_default_vpc
.
this
.*.
cidr_block
,
[
""
]
)
[
0
]
...
...
@@ -422,31 +442,61 @@ output "public_network_acl_id" {
value
=
concat
(
aws_network_acl
.
public
.*.
id
,
[
""
]
)
[
0
]
}
output
"public_network_acl_arn"
{
description
=
"ARN of the public network ACL"
value
=
concat
(
aws_network_acl
.
public
.*.
arn
,
[
""
]
)
[
0
]
}
output
"private_network_acl_id"
{
description
=
"ID of the private network ACL"
value
=
concat
(
aws_network_acl
.
private
.*.
id
,
[
""
]
)
[
0
]
}
output
"private_network_acl_arn"
{
description
=
"ARN of the private network ACL"
value
=
concat
(
aws_network_acl
.
private
.*.
arn
,
[
""
]
)
[
0
]
}
output
"intra_network_acl_id"
{
description
=
"ID of the intra network ACL"
value
=
concat
(
aws_network_acl
.
intra
.*.
id
,
[
""
]
)
[
0
]
}
output
"intra_network_acl_arn"
{
description
=
"ARN of the intra network ACL"
value
=
concat
(
aws_network_acl
.
intra
.*.
arn
,
[
""
]
)
[
0
]
}
output
"database_network_acl_id"
{
description
=
"ID of the database network ACL"
value
=
concat
(
aws_network_acl
.
database
.*.
id
,
[
""
]
)
[
0
]
}
output
"database_network_acl_arn"
{
description
=
"ARN of the database network ACL"
value
=
concat
(
aws_network_acl
.
database
.*.
arn
,
[
""
]
)
[
0
]
}
output
"redshift_network_acl_id"
{
description
=
"ID of the redshift network ACL"
value
=
concat
(
aws_network_acl
.
redshift
.*.
id
,
[
""
]
)
[
0
]
}
output
"redshift_network_acl_arn"
{
description
=
"ARN of the redshift network ACL"
value
=
concat
(
aws_network_acl
.
redshift
.*.
arn
,
[
""
]
)
[
0
]
}
output
"elasticache_network_acl_id"
{
description
=
"ID of the elasticache network ACL"
value
=
concat
(
aws_network_acl
.
elasticache
.*.
id
,
[
""
]
)
[
0
]
}
output
"elasticache_network_acl_arn"
{
description
=
"ARN of the elasticache network ACL"
value
=
concat
(
aws_network_acl
.
elasticache
.*.
arn
,
[
""
]
)
[
0
]
}
# VPC Endpoints
output
"vpc_endpoint_s3_id"
{
description
=
"The ID of VPC endpoint for S3"
...
...
versions.tf
View file @
ec5a0d26
...
...
@@ -2,6 +2,6 @@ terraform {
required_version
=
">= 0.12.7, < 0.14"
required_providers
{
aws
=
">= 2.
57
, < 4.0"
aws
=
">= 2.
68
, < 4.0"
}
}
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