billtrust / iam-docker-run Goto Github PK
View Code? Open in Web Editor NEWRun Docker containers within the context of an AWS IAM Role, and other development workflow helpers.
License: MIT License
Run Docker containers within the context of an AWS IAM Role, and other development workflow helpers.
License: MIT License
I was trying to run the application and it seems as though it gathers the tokens from assuming roles, but not passing those credentials to be used by the docker container.
I am able to get a list of systems back (using describe instances) but i can't change environment profiles.
iam-docker-run --image checkprofile --profile nonprod
IAM-Docker-Run version 0.3.2
Reading AWS profile nonprod
Profile nonprod indicates role to assume: arn:aws-us-gov:iam:::role/Assume_Role*
Found profile nonprod in ~/.aws/config, indicated source_profile test
Found source profile test in ~/.aws/credentials, access key: AKIA*****
Assuming role specified in profile nonprod: arn:aws-us-gov:iam:::role/Assume_Role*
Generated temporary AWS credentials: ASIA****
Temp env file: /tmp/tmpqK8wTK
Container name file: /temp/root/_container_name.txt
docker run --name ba315700c2sfsa485e87d47b6d2e9f7962 --env-file /tmp/tmpqK8wTK checkprofile
<-- this servername is repeated for any environment profile I use.
The docker run command has a --add-host to "Add a custom host-to-IP mapping (host:ip)".
https://docs.docker.com/engine/reference/commandline/run/
Would be useful to have access to this feature from iam-docker-run. I see there are already a number of other passthroughs available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.