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
c3fd1566
Unverified
Commit
c3fd1566
authored
Jun 20, 2022
by
Bryant Biggs
Committed by
GitHub
Jun 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Compact CIDR block outputs to avoid empty diffs (#802)
parent
93ca83ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
.pre-commit-config.yaml
.pre-commit-config.yaml
+2
-2
outputs.tf
outputs.tf
+15
-15
No files found.
.pre-commit-config.yaml
View file @
c3fd1566
repos
:
-
repo
:
https://github.com/antonbabenko/pre-commit-terraform
rev
:
v1.
62.3
rev
:
v1.
72.1
hooks
:
-
id
:
terraform_fmt
-
id
:
terraform_validate
...
...
@@ -23,7 +23,7 @@ repos:
-
'
--args=--only=terraform_standard_module_structure'
-
'
--args=--only=terraform_workspace_remote'
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v4.
1
.0
rev
:
v4.
3
.0
hooks
:
-
id
:
check-merge-conflict
-
id
:
end-of-file-fixer
outputs.tf
View file @
c3fd1566
...
...
@@ -60,7 +60,7 @@ output "vpc_ipv6_cidr_block" {
output
"vpc_secondary_cidr_blocks"
{
description
=
"List of secondary CIDR blocks of the VPC"
value
=
aws_vpc_ipv4_cidr_block_association
.
this
[
*
]
.
cidr_block
value
=
compact
(
aws_vpc_ipv4_cidr_block_association
.
this
[
*
]
.
cidr_block
)
}
output
"vpc_owner_id"
{
...
...
@@ -80,12 +80,12 @@ output "private_subnet_arns" {
output
"private_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of private subnets"
value
=
aws_subnet
.
private
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
private
[
*
]
.
cidr_block
)
}
output
"private_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of private subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
private
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
private
[
*
]
.
ipv6_cidr_block
)
}
output
"public_subnets"
{
...
...
@@ -100,12 +100,12 @@ output "public_subnet_arns" {
output
"public_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of public subnets"
value
=
aws_subnet
.
public
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
public
[
*
]
.
cidr_block
)
}
output
"public_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of public subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
public
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
public
[
*
]
.
ipv6_cidr_block
)
}
output
"outpost_subnets"
{
...
...
@@ -120,12 +120,12 @@ output "outpost_subnet_arns" {
output
"outpost_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of outpost subnets"
value
=
aws_subnet
.
outpost
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
outpost
[
*
]
.
cidr_block
)
}
output
"outpost_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of outpost subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
outpost
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
outpost
[
*
]
.
ipv6_cidr_block
)
}
output
"database_subnets"
{
...
...
@@ -140,12 +140,12 @@ output "database_subnet_arns" {
output
"database_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of database subnets"
value
=
aws_subnet
.
database
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
database
[
*
]
.
cidr_block
)
}
output
"database_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of database subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
database
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
database
[
*
]
.
ipv6_cidr_block
)
}
output
"database_subnet_group"
{
...
...
@@ -170,12 +170,12 @@ output "redshift_subnet_arns" {
output
"redshift_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of redshift subnets"
value
=
aws_subnet
.
redshift
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
redshift
[
*
]
.
cidr_block
)
}
output
"redshift_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of redshift subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
redshift
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
redshift
[
*
]
.
ipv6_cidr_block
)
}
output
"redshift_subnet_group"
{
...
...
@@ -195,12 +195,12 @@ output "elasticache_subnet_arns" {
output
"elasticache_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of elasticache subnets"
value
=
aws_subnet
.
elasticache
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
elasticache
[
*
]
.
cidr_block
)
}
output
"elasticache_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of elasticache subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
elasticache
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
elasticache
[
*
]
.
ipv6_cidr_block
)
}
output
"intra_subnets"
{
...
...
@@ -215,12 +215,12 @@ output "intra_subnet_arns" {
output
"intra_subnets_cidr_blocks"
{
description
=
"List of cidr_blocks of intra subnets"
value
=
aws_subnet
.
intra
[
*
]
.
cidr_block
value
=
compact
(
aws_subnet
.
intra
[
*
]
.
cidr_block
)
}
output
"intra_subnets_ipv6_cidr_blocks"
{
description
=
"List of IPv6 cidr_blocks of intra subnets in an IPv6 enabled VPC"
value
=
aws_subnet
.
intra
[
*
]
.
ipv6_cidr_block
value
=
compact
(
aws_subnet
.
intra
[
*
]
.
ipv6_cidr_block
)
}
output
"elasticache_subnet_group"
{
...
...
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