mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-25 18:40:03 +01:00
52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"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"
|
|
} |