2fas-server/deployments/websocket/taskdef.json

52 lines
1.4 KiB
JSON
Raw Normal View History

2022-12-31 10:22:38 +01:00
{
"executionRoleArn": "arn:aws:iam::<AWS_ACCOUNT_ID>:role/2fas-websocket-api_ecsTaskExecutionRole",
"containerDefinitions": [
{
"name": "2fas-websocket-api",
"image": "<IMAGE_NAME>",
"essential": true,
"portMappings": [
{
"hostPort": 8081,
"protocol": "tcp",
"containerPort": 8081
}
],
"environmentFiles": [
{
"value": "arn:aws:s3:::2fas-production-env/websocket_api.env",
"type": "s3"
}
],
"secrets": [
{
"name": "MYSQL_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:us-east-2:<AWS_ACCOUNT_ID>:secret:prod/mysql-wi9cyz:password::"
},
{
"name": "MYSQL_USERNAME",
"valueFrom": "arn:aws:secretsmanager:us-east-2:<AWS_ACCOUNT_ID>:secret:prod/mysql-wi9cyz:username::"
},
{
"name": "MYSQL_HOST",
"valueFrom": "arn:aws:secretsmanager:us-east-2:<AWS_ACCOUNT_ID>:secret:prod/mysql-wi9cyz:host::"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group" : "/ecs/2fas-api",
"awslogs-region": "us-east-2",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"networkMode": "awsvpc",
"family": "2fas-websocket-api",
"cpu": "256",
"memory": "512"
}