I forked this so I could use the SSO capabilities of the v2 version of the AWS SDK (I use identity center locally).
This isn't fully tested, but the /creds endpoint works (which is all my use case needs).
I run with the following commands:
go build .
go AWS_PROFILE=<my profile> ECS_LOCAL_METADATA_PORT=51679 go run main.go
Then I run this to validate:
curl -X GET http://127.0.0.1:51679/creds
I didn't need to run docker, but I assume you can build the docker image with the Makefile.
A container that provides local versions of the ECS Task IAM Roles endpoint and the ECS Task Metadata Endpoints. This project will help you test applications locally before you deploy to ECS/Fargate.
This repository contains the source code for the project. To use it, pull the amazon/amazon-ecs-local-container-endpoints:latest image from Docker Hub.
If you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow the instructions here or email AWS security directly at [email protected].
This library is licensed under the Apache 2.0 License.