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

Provide an example for a fully private cluster with Private Isolated Subnets and VPC Interface Endpoints #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maiconrocha
Copy link

Motivation:

I am a Support Engineer from AWS from the containers profile, and was helping a customer who was looking for an example of ECS Blue/Green in a cluster without Internet Gateway.
So I decided to provide an example to the customer by modifying this example.

Modified the file cluster.ts which creates the VPC Resources, and now it creates

  • VPC with only private subnets without NAT Gateway.
  • VPC Interface Endpoints to ECR, Docker and OCI client endpoints and Cloudwatch
  • VPC Gateway Endpoint for S3
    This is to provide a fully private Cluster and access to the Service Endpoints internally.

Also, I changed the ALB to be private by changing internetFacing variable to false on the attached file services.ts.

In case this PR is accepted, I would suggest creating a new branch called privatecluster and merge the changes on this PR This will provide customers with an example of ECS blue/green in a fully private cluster with Private Isolated Subnets and VPC Interface Endpoints on this repository.
We can also change README to explain there is another branch with example for deployment in a private cluster.

I have tested a deployment in the fully private cluster and it works successfully, please see attached.
Screenshot 2023-12-04 at 5 00 34 pm

… it creates

  a VPC with only private subnets without NAT Gateway.
  - VPC Interface Endpoints to ECR, Docker and OCI client endpoints and Cloudwatch
  - VPC Gateway Endpoint for S3
  This is to provide a fully private Cluster and access to the Service Endpoints internally.

  Also, I changed the ALB to be private by changing internetFacing variable to false on the attached file services.ts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant