Skip to content

Commit

Permalink
Address CIS-VpcDefaultSecurityGroupsMustRestrictAllTraffic (#40)
Browse files Browse the repository at this point in the history
* Address CIS-VpcDefaultSecurityGroupsMustRestrictAllTraffic

* Address CIS-VpcDefaultSecurityGroupsMustRestrictAllTraffic

* Apply suggestions from code review
  • Loading branch information
goruha authored Aug 20, 2019
1 parent 192b793 commit d16f786
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ resource "aws_vpc" "default" {
tags = module.label.tags
}

# If `aws_default_security_group` is not defined, it would be created implicitly with access `0.0.0.0/0`
resource "aws_default_security_group" "default" {
vpc_id = aws_vpc.default.id

tags = {
Name = "Default Security Group"
}
}

resource "aws_internet_gateway" "default" {
vpc_id = aws_vpc.default.id
tags = module.label.tags
Expand Down

0 comments on commit d16f786

Please sign in to comment.