Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fargate ECS with ALB service
"serviceName": "fargate-service",
"taskDefinition": "sample-fargate:1",
"loadBalancers": [
"targetGroupArn": "arn:aws:elasticloadbalancing:::targetgroup/fargate-target/",
"containerName": "fargate-app",
"containerPort": 80
"networkConfiguration": {
"awsvpcConfiguration": {
"assignPublicIp": "ENABLED",
"securityGroups": ["<your sg id 1>"],
"subnets": ["<your subnet id 1>", "<your subnet id 2>"]
"desiredCount": 2,
"launchType": "FARGATE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment