Skip to content

Instantly share code, notes, and snippets.

@sombriks
Last active July 17, 2023 19:04
Show Gist options
  • Save sombriks/743b8576253617f4bdf984504f50316b to your computer and use it in GitHub Desktop.
Save sombriks/743b8576253617f4bdf984504f50316b to your computer and use it in GitHub Desktop.
{
"family": "teste",
"containerDefinitions": [
{
"name": "kafka",
"image": "public.ecr.aws/bitnami/kafka:3.5",
"cpu": 0,
"portMappings": [
{
"name": "kafka-9092-tcp",
"containerPort": 9092,
"hostPort": 9092,
"protocol": "tcp"
},
{
"name": "kafka-9093-tcp",
"containerPort": 9093,
"hostPort": 9093,
"protocol": "tcp"
},
{
"name": "kafka-9094-tcp",
"containerPort": 9094,
"hostPort": 9094,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP",
"value": "CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT"
},
{
"name": "ALLOW_PLAINTEXT_LISTENER",
"value": "yes"
},
{
"name": "KAFKA_CFG_ZOOKEEPER_CONNECT",
"value": "zookeeper:2181"
},
{
"name": "KAFKA_ENABLE_KRAFT",
"value": "no"
},
{
"name": "KAFKA_CFG_LISTENERS",
"value": "PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094"
},
{
"name": "KAFKA_CFG_ADVERTISED_LISTENERS",
"value": "PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094"
}
],
"mountPoints": [],
"volumesFrom": [],
"dependsOn": [
{
"containerName": "zookeeper",
"condition": "START"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "kafka-container",
"awslogs-region": "sa-east-1",
"awslogs-stream-prefix": "kafka"
}
}
},
{
"name": "zookeeper",
"image": "public.ecr.aws/bitnami/zookeeper:3.8",
"cpu": 0,
"portMappings": [
{
"name": "zookeeper-2181-tcp",
"containerPort": 2181,
"hostPort": 2181,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "ALLOW_ANONYMOUS_LOGIN",
"value": "yes"
}
],
"mountPoints": [],
"volumesFrom": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "zookeeper-container",
"awslogs-region": "sa-east-1",
"awslogs-stream-prefix": "kafka"
}
}
}
],
"executionRoleArn": "ecsTaskExecutionRole",
"networkMode": "awsvpc",
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "512",
"memory": "1024"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment