Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tf_mod_aws_vpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
tf_mod_aws_vpc
Commits
3a6a3f7d
Commit
3a6a3f7d
authored
Jun 03, 2019
by
Felix Edelsten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further Syntax Changes
parent
d57e0ff8
Pipeline
#6247
passed with stage
in 14 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.tf
main.tf
+5
-5
No files found.
main.tf
View file @
3a6a3f7d
...
...
@@ -50,7 +50,7 @@ resource "aws_subnet" "public" {
count
=
"
${
length
(
var
.
public_subnets
)
}
"
map_public_ip_on_launch
=
true
tags
{
tags
=
{
Name
=
"
${
var
.
name
}
.public.
${
element
(
var
.
availability_zones
,
count
.
index
)
}
"
}
}
...
...
@@ -63,7 +63,7 @@ resource "aws_subnet" "private" {
availability_zone
=
"
${
element
(
var
.
availability_zones
,
count
.
index
)
}
"
count
=
"
${
length
(
var
.
private_subnets
)
}
"
tags
{
tags
=
{
Name
=
"
${
var
.
name
}
.private.
${
element
(
var
.
availability_zones
,
count
.
index
)
}
"
}
}
...
...
@@ -71,7 +71,7 @@ resource "aws_subnet" "private" {
resource
"aws_internet_gateway"
"mod"
{
vpc_id
=
"
${
aws_vpc
.
mod
.
id
}
"
tags
{
tags
=
{
Name
=
"
${
var
.
name
}
"
}
}
...
...
@@ -91,7 +91,7 @@ resource "aws_nat_gateway" "nat" {
resource
"aws_route_table"
"public"
{
vpc_id
=
"
${
aws_vpc
.
mod
.
id
}
"
tags
{
tags
=
{
Name
=
"
${
var
.
name
}
.public"
}
}
...
...
@@ -100,7 +100,7 @@ resource "aws_route_table" "private" {
vpc_id
=
"
${
aws_vpc
.
mod
.
id
}
"
count
=
"
${
length
(
var
.
private_subnets
)
}
"
tags
{
tags
=
{
Name
=
"
${
var
.
name
}
.private.
${
element
(
var
.
availability_zones
,
count
.
index
)
}
"
}
}
...
...
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