Skip to content

Commit

Permalink
vpc - vpc endpoints security group
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelberston committed Nov 27, 2024
1 parent e5f7cc4 commit a7cd82b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions terraform/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,23 @@ module "vpc_endpoints" {
ManagedBy = "terraform"
}
}

resource "aws_security_group" "vpc_endpoints" {
name = "vpc-endpoints-sg"
description = "Security group for VPC endpoints"
vpc_id = module.vpc.vpc_id

ingress {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = [module.vpc.vpc_cidr_block]
description = "Allow HTTPS traffic from within VPC"
}

tags = {
Name = "vpc-endpoints-sg"
Environment = "production"
ManagedBy = "terraform"
}
}

0 comments on commit a7cd82b

Please sign in to comment.