ryanfrench / aws-auth Goto Github PK
View Code? Open in Web Editor NEWSmall CLI utility to work with auth in AWS
License: MIT License
Small CLI utility to work with auth in AWS
License: MIT License
If I run a command aws-role --role-arn [role] aws cloudformation deploy --template foo
then the tool will attempt to parse --template foo
as a flag for the tool, not for the subsequent command.
To fix this, enforce that the --role-arn
, and other flags for the tool, must be provided before the command to run, and anything after the command is ignored and passed directly to the executed command.
Instead of assuming a role each time, check if there is a previously stored session in $HOME/.aws-role/sessions for the arn. If it is still valid, set the environment variables from that session. If it has expired, delete it.
Assume a role and run the supplied command with non-persistent environment variables
This way, we could use this tool as a single tool for authenticating requests that require
Could also rename project to aws-auth
once this is completed.
When a role is assumed, save the session details to $HOME/.aws-role/* so they can be read between runs.
Should include details of the role arn, session name, and time of expiration.
If "--persist" is set in the command, export the environment variables to the shell session so that the role is used for all subsequent commands.
Should also allow the utility to be run with "--persist" and no command, to simply assume the role and set the required environment variables
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.