Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Terraform ECS Task sshable + Task role

09 Mar 2023 »

https://aws.amazon.com/premiumsupport/knowledge-center/ecs-fargate-access-aws-services/

AWS_CONTAINER_CREDENTIALS_RELATIVE_URI

** RUN echo 'export $(strings /proc/1/environ | grep AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)' >> /root/.profile **

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition

need task_role_arn

Error

missing AWS_CONTAINER_CREDENTIALS_RELATIVE_URI

https://stackoverflow.com/questions/61367284/ecs-fargate-task-container-missing-aws-container-credentials-relative-uri