Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How change AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY per stage or at runtime

julianbueno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2018

I am trying to deploy to staging account with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that works

 

but when I am trying to deploy to prod and change them it does not.

 

Any help/workaround

1 answer

0 votes
julianbueno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2018

I found a workaround

Staging Step

- aws configure set aws_access_key_id $STAGING_AWS_ACCESS_KEY_ID

- aws configure set aws_secret_access_key $STAGING_AWS_SECRET_ACCESS_KEY

- aws configure set default.region $AWS_DEFAULT_REGION

 

Prod Step

 

- aws configure set aws_access_key_id $PROD_AWS_ACCESS_KEY_ID

- aws configure set aws_secret_access_key $PROD_AWS_SECRET_ACCESS_KEY

- aws configure set default.region $AWS_DEFAULT_REGION

 

The product should provide the ability the add Environment Var per Stage

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events