abyss / awsp-plus Goto Github PK
View Code? Open in Web Editor NEWSwitch AWS Profiles Even Easier
License: Other
Switch AWS Profiles Even Easier
License: Other
Configure a way (perhaps in the .awsp file?) to indicate whether a credential helper is needed, like saml2aws, and then run login for the profile if the session is nonexistent or expired.
Currently, awsp-plus only looks at ~/.aws/config
, the default location for the AWS Config file.
However, AWS CLI supports the environment variable AWS_CONFIG_FILE
which can specify a new location for the config file. awsp-plus should use that file.
AWS Docs here: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
Ay,
Nice works ! But I think there is missing something. It correctly set AWS_PROFILE
but for ElasticBeanStalk CLI the export variable must be AWS_EB_PROFILE
.
Do you think it possible to add that ?
Regards,
awspp produces the following error:
cat: <homedir>/.awsp: No such file or directory
Expected result:
Hidden error, it's irrelevant to the functionality
Hi, I configured alias for awsp
and when I call it I see the profile list but when I choose one of them the terminal dies. The same behavior happens with native ubuntu terminal and guake. Where are awsp logs written, so I can put them here for analysis?
aws-cli works fine when using --profile
flag.
$ alias
alias awsp='source _awspp'
$ guake --version
Guake Terminal: 3.10
VTE: 0.68.0
VTE runtime: 0.68.0
Gtk: 3.24.33
$ npm -g list
~/.asdf/installs/nodejs/20.5.1/lib
├── [email protected]
├── [email protected]
└── [email protected]
$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
Summary:
If the config file does not exist or only contains [default], the script errors in an ugly manner
AWS Profile Switcher Plus
No profiles found.
Refer to this guide for help on setting up a new AWS profile:
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
Error: TypeError: Cannot read property 'profile' of undefined
at /home/ssadowski/.local/.npm/lib/node_modules/awsp-plus/index.js:64:46
at new Promise (<anonymous>)
at writeToConfig (/home/ssadowski/.local/.npm/lib/node_modules/awsp-plus/index.js:63:10)
cat: /home/ssadowski/.awsp: No such file or directory
Expected result:
If default isn't available, echo only the 'No profiles found' message with link, if default is available, allow user to select it
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.