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
6c4268c0
Unverified
Commit
6c4268c0
authored
Sep 23, 2020
by
Yauheni Batsianouski
Committed by
GitHub
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add support for security groups ids in default sg's rules (#491)
parent
79d9fead
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
main.tf
main.tf
+2
-0
No files found.
main.tf
View file @
6c4268c0
...
...
@@ -66,6 +66,7 @@ resource "aws_default_security_group" "this" {
cidr_blocks
=
compact
(
split
(
","
,
lookup
(
ingress
.
value
,
"cidr_blocks"
,
""
)))
ipv6_cidr_blocks
=
compact
(
split
(
","
,
lookup
(
ingress
.
value
,
"ipv6_cidr_blocks"
,
""
)))
prefix_list_ids
=
compact
(
split
(
","
,
lookup
(
ingress
.
value
,
"prefix_list_ids"
,
""
)))
security_groups
=
compact
(
split
(
","
,
lookup
(
ingress
.
value
,
"security_groups"
,
""
)))
description
=
lookup
(
ingress
.
value
,
"description"
,
null
)
from_port
=
lookup
(
ingress
.
value
,
"from_port"
,
0
)
to_port
=
lookup
(
ingress
.
value
,
"to_port"
,
0
)
...
...
@@ -80,6 +81,7 @@ resource "aws_default_security_group" "this" {
cidr_blocks
=
compact
(
split
(
","
,
lookup
(
egress
.
value
,
"cidr_blocks"
,
""
)))
ipv6_cidr_blocks
=
compact
(
split
(
","
,
lookup
(
egress
.
value
,
"ipv6_cidr_blocks"
,
""
)))
prefix_list_ids
=
compact
(
split
(
","
,
lookup
(
egress
.
value
,
"prefix_list_ids"
,
""
)))
security_groups
=
compact
(
split
(
","
,
lookup
(
egress
.
value
,
"security_groups"
,
""
)))
description
=
lookup
(
egress
.
value
,
"description"
,
null
)
from_port
=
lookup
(
egress
.
value
,
"from_port"
,
0
)
to_port
=
lookup
(
egress
.
value
,
"to_port"
,
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