See awslabs/amazon-ecs-local-container-endpoints
.
This is an official container that mimics the Amazon ECS credential vending endpoint that is available in production AWS Fargate environments, and Amazon EC2 instances under Amazon ECS management. The credential vending endpoint is what allows an application running in AWS Fargate, under Amazon ECS management, to assume a given task IAM role.
The following command utilizes podman
but will also work with docker
.