Skip to content

Commit

Permalink
fix: missing aws variables at each gitpod startup
Browse files Browse the repository at this point in the history
  • Loading branch information
billmetangmo committed Jun 29, 2023
1 parent 446b311 commit 17ac5ca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .envrc.gitpod
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ then
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip && sudo ./aws/install && rm awscliv2.zip && rm -rf aws/ &&\
mkdir "$WORKPLACE"/.aws && touch "$WORKPLACE"/.aws/credentials && touch "$WORKPLACE"/.aws/config &&\
export AWS_SHARED_CREDENTIALS_FILE=$WORKPLACE/.aws/credentials &&\
export AWS_CONFIG_FILE=$WORKPLACE/.aws/config &&\
echo "export AWS_SHARED_CREDENTIALS_FILE=\$WORKPLACE/.aws/credentials" >> ~/.bashrc
echo "export AWS_CONFIG_FILE=\$WORKPLACE/.aws/config" >> ~/.bashrc
echo "export AWS_SDK_LOAD_CONFIG=1" >> ~/.bashrc
aws configure
popd || exit
fi

export AWS_SHARED_CREDENTIALS_FILE=$WORKPLACE/.aws/credentials
export AWS_CONFIG_FILE=$WORKPLACE/.aws/config
export AWS_SDK_LOAD_CONFIG=1
echo "export AWS_SHARED_CREDENTIALS_FILE=\$WORKPLACE/.aws/credentials" >> ~/.bashrc
echo "export AWS_CONFIG_FILE=\$WORKPLACE/.aws/config" >> ~/.bashrc
echo "export AWS_SDK_LOAD_CONFIG=1" >> ~/.bashrc

0 comments on commit 17ac5ca

Please sign in to comment.