https://github.com/awsdataarchitect/ecs-exec-cdk
An open-source project demo of ECS Exec to access your containers on AWS Fargate by using AWS-CDK
https://github.com/awsdataarchitect/ecs-exec-cdk
aws cdk containers ecs ecs-fargate
Last synced: 29 days ago
JSON representation
An open-source project demo of ECS Exec to access your containers on AWS Fargate by using AWS-CDK
- Host: GitHub
- URL: https://github.com/awsdataarchitect/ecs-exec-cdk
- Owner: awsdataarchitect
- License: mit
- Created: 2024-05-11T04:53:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-11T05:06:15.000Z (about 2 years ago)
- Last Synced: 2024-05-11T06:20:28.994Z (about 2 years ago)
- Topics: aws, cdk, containers, ecs, ecs-fargate
- Language: TypeScript
- Homepage: https://vivek-aws.medium.com/ecs-exec-to-access-your-containers-on-aws-fargate-by-using-aws-cdk-a977725fbb10
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# An open-source project demo of ECS Exec to access your containers on AWS Fargate by using AWS-CDK
This is a CDK project written in TypeScript that shows implementation of ECS Exec to access your containers on AWS Fargate by using AWS-CDK. This project provisions a nginx web server with a read-only root file system on an ECS Fargate Cluster using bind mounts and running in a VPC with Public Subnets and associated IAM Roles/Policies, Security Groups, Route Tables, Internet Gateway and an Application Load Balancer. ECS Exec is implemented by enforcing the Security Hub best practices with read-only root file system in ECS with bind mounts in the CDK code.
The `cdk.json` file tells the CDK Toolkit how to execute your app.
## Useful commands
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template