Comments (1)
Hey @SWolfeCAI, pardon the delay in responding. I like the idea of this and I've been thinking about adding something like this for a while, but I don't have any solid details on when this could get added.
We've had some work planned on our backlog for a while to refactor the logic for how the CLI manages its settings and that will likely create an opportunity to reengineer this process and come up with a better solution that potentially allows for overrides of settings in subfolders with files similar to what you've described so it is on our radar.
In the meantime, although this isn't an implementation of your feature suggestion I believe I have a solution that might help you accomplish the same goal today. The AWS CLI (and many AWS-related tooling including terraform) can use a file called ~/.aws/credentials
where you can specify various profiles and credentials for those profiles, but the really neat thing is that you can establish a profile that uses a credential process such that whenever the profile is used, the AWS CLI will execute the specified command to generate credentials for that profile on-the-fly, and the ALKS CLI can be used today to perform this action. I believe it would look something like this:
# ~/.aws/credentials
[profile awsmyaccount]
credential_process = /usr/local/bin/alks sessions open -a 012345678910 -r Admin -o aws
and then in your terraform file you could specify this profile on the aws provider block like this:
provider "aws" {
region = ...
profile = "awsmyaccount"
}
With this configuration your terraform should be able to automatically detect that profile and execute that ALKS CLI command to generate credentials for your account at the moment they're needed without the need for any .alksrc
file. I would still like to eventually implement some kind of rc file for ALKS since there are potentially several other use cases for it so I will leave this feature request open for now but I hope this solution helps you in the meantime
from alks-cli.
Related Issues (20)
- Please fix the engine section in cox's port of clortho package to >=4
- [FEATURE]: Support to use alks-cli as an external process with AWS CLI HOT 5
- Feature Request: Better errors when refresh token fails HOT 2
- Windows Users using GitBash Need Export Not Set HOT 2
- Unable to authenticate, need: Basic realm="GitHub" HOT 9
- [FEATURE] Print OAuth Link to STDOUT HOT 1
- [BUG] Create Role function does not support Machine Identities HOT 1
- FEATURE REQUEST: Print human readable names in `alks sessions open` output
- Character Escaping
- [FEATURE] Make it easier to find a specific account in a list HOT 1
- Eliminate npm "update available" message
- Defautl / Custom Session Times HOT 1
- 31 high vulnerabilities in 3.7.3
- Make Login2fa non-interactive
- node 16 support
- Unhaldled error when trying to configure profile in WSL
- `alks sessions console` opens a new browser instance
- [feature] extend `alks sessions open` to use AWS profiles
- Deprecation Warning: punycode module is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alks-cli.