Olá!
Consegui fazer o acesso colocando o usarname e o password no mesmo secret, e atualizando a política para o role que estava executando a tarefa, mas agora acho que estou com um problema para rodar o container, é um aplicação angular que estou tentando rodar, quando eu acesso o IP gerado na execução da tarefa pelo cluster, nada aparece, segue abaixo a configuração da task:
{
"taskDefinitionArn": "arn:aws:ecs:us-east-1:XXXXXXX:task-definition/XXXXX-app-task:10",
"containerDefinitions": [
{
"name": "XXXXXXX-app",
"image": "XXXXXX/XXXXX-app:latest",
"repositoryCredentials": {
"credentialsParameter": "arn:aws:secretsmanager:us-east-1:XXXXXX:secret:DOCKER_LOGIN-NZXZbn"
},
"cpu": 0,
"portMappings": [
{
"name": "XXXXX-app-4200-tcp",
"containerPort": 4200,
"hostPort": 4200,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [],
"environmentFiles": [],
"mountPoints": [],
"volumesFrom": [],
"ulimits": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/XXXXXX-app-task",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
},
"secretOptions": []
},
"systemControls": []
}
],
"family": "XXXXX-app-task",
"executionRoleArn": "arn:aws:iam::XXXXXX:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"revision": 10,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
{
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
},
{
"name": "ecs.capability.execution-role-awslogs"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
},
{
"name": "ecs.capability.private-registry-authentication.secretsmanager"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
},
{
"name": "ecs.capability.task-eni"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
}
],
"placementConstraints": [],
"compatibilities": [
"EC2",
"FARGATE"
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"registeredAt": "2024-05-09T01:19:54.484Z",
"registeredBy": "arn:aws:iam::XXXXXX:root",
"tags": []
}