Wednesday, 8 February 2023

Access Container On AWS Fargate

Here is the documentation for Access Container On Fargate

#!/bin/bash

# if see error, most likely task id is changed because of new build
aws ecs execute-command \
--region us-west-1 \
--cluster my-ecs-microservice \
--task 709909fdf605c4d7f9c3c206af862abc \
--container sandbox-contauner-foo-1 \
--command "/bin/bash"  --interactive

Find Target Group of A ECS Service

  • Click that service
  • Click network tab

No comments:

Post a Comment