Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created September 16, 2021 14:48
Show Gist options
  • Save anna-geller/13100edf7bda0a23fceadf958a0129e0 to your computer and use it in GitHub Desktop.
Save anna-geller/13100edf7bda0a23fceadf958a0129e0 to your computer and use it in GitHub Desktop.
{
"family": "ecsDemo",
"requiresCompatibilities": ["FARGATE"],
"networkMode": "awsvpc",
"cpu": "256",
"memory": "512",
"taskRoleArn": "arn:aws:iam::123456:role/ecs-athena-glue-s3-role",
"executionRoleArn": "arn:aws:iam::123456:role/ecs-task-execution-role",
"containerDefinitions": [
{
"name": "ecsDemo",
"image": "123456.dkr.ecr.YOUR_REGION.amazonaws.com/stockdata:latest",
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/ecsDemo",
"awslogs-region": "YOUR_REGION",
"awslogs-stream-prefix": "ecs",
"awslogs-create-group": "true"
}
},
"secrets": [
{
"name": "ALPHAVANTAGE_API_KEY",
"valueFrom": "arn:aws:ssm:YOUR_REGION:123456:parameter/ALPHAVANTAGE_API_KEY"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment