{ "family": "sharepoint-connector", "networkMode": "awsvpc", "requiresCompatibilities": ["FARGATE"], "cpu": "512", "memory": "1024", "executionRoleArn": "arn:aws:iam::YOUR_ACCOUNT_ID:role/ecsTaskExecutionRole", "taskRoleArn": "arn:aws:iam::YOUR_ACCOUNT_ID:role/sharepoint-connector-task-role", "containerDefinitions": [ { "name": "sharepoint-connector", "image": "YOUR_ACCOUNT_ID.dkr.ecr.ap-southeast-2.amazonaws.com/sharepoint-connector:latest", "essential": true, "portMappings": [ { "containerPort": 8000, "protocol": "tcp" } ], "environment": [ { "name": "AWS_REGION", "value": "ap-southeast-2" }, { "name": "TABLE_PREFIX", "value": "prod_" }, { "name": "PORT", "value": "8000" } ], "secrets": [ { "name": "FLASK_SECRET_KEY", "valueFrom": "arn:aws:secretsmanager:ap-southeast-2:YOUR_ACCOUNT_ID:secret:sharepoint-connector/flask-secret" } ], "healthCheck": { "command": ["CMD-SHELL", "python -c \"import requests; requests.get('http://localhost:8000/health')\""], "interval": 30, "timeout": 5, "retries": 3, "startPeriod": 60 }, "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-group": "/ecs/sharepoint-connector", "awslogs-region": "ap-southeast-2", "awslogs-stream-prefix": "ecs" } } } ] }