Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configured vpc endpoint to be always on, previously depended on bastions being enabled #325

Merged
merged 1 commit into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/vpc/endpoints.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ resource "aws_vpc_endpoint" "s3" {
tags = var.tags
}

// endpoints required for session manager
// enpoint required for bastions and ecs task get ssm parameters

resource "aws_vpc_endpoint" "ssm" {
count = var.ssm_session_manager_endpoints ? 1 : 0
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.public_subnets
service_name = "com.amazonaws.${var.region}.ssm"
Expand All @@ -41,6 +40,8 @@ resource "aws_vpc_endpoint" "ssm" {
depends_on = [aws_security_group.endpoints]
}

// endpoints required for bastions session manager

resource "aws_vpc_endpoint" "ssmmessages" {
count = var.ssm_session_manager_endpoints ? 1 : 0
vpc_id = module.vpc.vpc_id
Expand Down
Loading