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
6f51f34d
Unverified
Commit
6f51f34d
authored
Apr 07, 2023
by
Bryant Biggs
Committed by
GitHub
Apr 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Add missing private subnets to max subnet length local (#920)
parent
57323d9c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
main.tf
examples/simple/main.tf
+1
-4
main.tf
main.tf
+2
-0
No files found.
examples/simple/main.tf
View file @
6f51f34d
...
...
@@ -29,10 +29,7 @@ module "vpc" {
cidr
=
local
.
vpc_cidr
azs
=
local
.
azs
private_subnets
=
[
for
k
,
v
in
local
.
azs
:
cidrsubnet
(
local
.
vpc_cidr
,
8
,
k
)
]
public_subnets
=
[
for
k
,
v
in
local
.
azs
:
cidrsubnet
(
local
.
vpc_cidr
,
8
,
k
+
4
)
]
enable_nat_gateway
=
false
private_subnets
=
[
for
k
,
v
in
local
.
azs
:
cidrsubnet
(
local
.
vpc_cidr
,
4
,
k
)
]
tags
=
local
.
tags
}
main.tf
View file @
6f51f34d
...
...
@@ -8,7 +8,9 @@ locals {
len_outpost_subnets
=
max
(
length
(
var
.
outpost_subnets
),
length
(
var
.
outpost_subnet_ipv6_prefixes
))
max_subnet_length
=
max
(
local
.
len_private_subnets
,
local
.
len_public_subnets
,
local
.
len_intra_subnets
,
local
.
len_elasticache_subnets
,
local
.
len_database_subnets
,
local
.
len_redshift_subnets
,
...
...
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