Commit 8cbdd795 authored by Logan Lindquist's avatar Logan Lindquist Committed by Marc Cornellà
Browse files

aws: set AWS_EB_PROFILE for the EB CLI (#7388)

Added AWS_EB_PROFILE environment variable to the AWS Plugin. The EB CLI uses this
variable instead of the primary AWS_PROFILE variable to keep track of what profile
it is using.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
parent 532a784b
...@@ -12,6 +12,7 @@ plugins=(... aws) ...@@ -12,6 +12,7 @@ plugins=(... aws)
## Plugin commands ## Plugin commands
* `asp [<profile>]`: Sets `$AWS_PROFILE` and `$AWS_DEFAULT_PROFILE` (legacy) to `<profile>`. * `asp [<profile>]`: Sets `$AWS_PROFILE` and `$AWS_DEFAULT_PROFILE` (legacy) to `<profile>`.
It also sets `$AWS_EB_PROFILE` to `<profile>` for the Elastic Beanstalk CLI.
Run `asp` without arguments to clear the profile. Run `asp` without arguments to clear the profile.
* `agp`: Gets the current value of `$AWS_PROFILE`. * `agp`: Gets the current value of `$AWS_PROFILE`.
......
...@@ -7,6 +7,7 @@ function agp { ...@@ -7,6 +7,7 @@ function agp {
function asp { function asp {
export AWS_DEFAULT_PROFILE=$1 export AWS_DEFAULT_PROFILE=$1
export AWS_PROFILE=$1 export AWS_PROFILE=$1
export AWS_EB_PROFILE=$1
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo AWS profile cleared. echo AWS profile cleared.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment