Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sambaiz/ecs-boilerplate
Create ECS (Fargate) resources and deploy by AWS CDK
https://github.com/sambaiz/ecs-boilerplate
aws aws-cdk aws-ecs
Last synced: 11 days ago
JSON representation
Create ECS (Fargate) resources and deploy by AWS CDK
- Host: GitHub
- URL: https://github.com/sambaiz/ecs-boilerplate
- Owner: sambaiz
- Created: 2020-02-23T12:51:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-24T06:53:17.000Z (almost 5 years ago)
- Last Synced: 2024-11-12T16:47:13.506Z (about 2 months ago)
- Topics: aws, aws-cdk, aws-ecs
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ecs-boilerplate
Boilerplate to create ECS (Fargate) resources and deploy by AWS CDK
### Get started
1. Edit `cdk/bin/cdk.ts`
```
const app = new cdk.App();
new ECSStack(app, 'ECSBoilerplateSampleStack', {
/*
// If vpcAttributes is not specified, new VPC is created.
vpcAttributes: {
vpcId: '',
availabilityZones: [],
publicSubnetIds: [],
privateSubnetIds: [],
},// DNS record. Even if this is not specified, you can access with ELB domain (***.elb.amazonaws.com)
route53: {
zoneId: '',
zoneName: 'example.com',
recordName: 'foo',
},
// Certificate Manager ARN. Required if accessing with HTTPS
acmArn: 'arn:aws:acm:****'// default values
containerPort: 8080,
cpu: 256,
memoryLimitMiB: 512,
minCapacity: 1,
maxCapacity: 5,
scaleCPUPercent: 80
*/
});
```2. Develop app
3. Deploy```
$ make deploy
...
Outputs:
ECSBoilerplateSampleStack.ServiceServiceURL*** = http://***.elb.amazonaws.com$ curl http://***.elb.amazonaws.com
Hi this is ECS
```4. Destroy
```
$ make destroy
```