Created
December 30, 2023 14:41
-
-
Save artem-hatchenko/fa5dfe9ebbcfc1d48d8e637a5f9dda64 to your computer and use it in GitHub Desktop.
ecs_task_definition_firelens_opensearch.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"family": "nginx", | |
"executionRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecsTaskExecutionRole", | |
"taskRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/Sandbox-ECS-Nginx-Service-Role", | |
"containerDefinitions": [ | |
{ | |
"name": "log_router", | |
"image": "docker.io/amazon/aws-for-fluent-bit:latest", | |
"cpu": 0, | |
"memoryReservation": 50, | |
"portMappings": [], | |
"essential": true, | |
"environment": [], | |
"mountPoints": [], | |
"volumesFrom": [], | |
"user": "0", | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"options": { | |
"awslogs-group": "/aws/ecs", | |
"awslogs-region": "us-east-1", | |
"awslogs-stream-prefix": "nginx" | |
} | |
}, | |
"firelensConfiguration": { | |
"type": "fluentbit", | |
"options": { | |
"enable-ecs-log-metadata": "true" | |
} | |
} | |
}, | |
{ | |
"name": "app", | |
"image": "nginx", | |
"cpu": 0, | |
"portMappings": [ | |
{ | |
"containerPort": 80, | |
"hostPort": 80, | |
"protocol": "tcp" | |
} | |
], | |
"essential": true, | |
"environment": [], | |
"mountPoints": [], | |
"volumesFrom": [], | |
"logConfiguration": { | |
"logDriver": "awsfirelens", | |
"options": { | |
"Name": "opensearch", | |
"Host": "opensearch.aws.artem.services", | |
"Port": "443", | |
"Index": "ecs-nginx", | |
"Aws_Auth": "On", | |
"Aws_Region": "us-east-1", | |
"Suppress_Type_Name": "On", | |
"tls": "On", | |
"retry_limit": "2" | |
} | |
} | |
} | |
], | |
"networkMode": "awsvpc", | |
"requiresCompatibilities": [ | |
"FARGATE" | |
], | |
"cpu": "256", | |
"memory": "512", | |
"runtimePlatform": { | |
"operatingSystemFamily": "LINUX" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment