Skip to content

Commit

Permalink
Merge pull request #589 from ShelbyZ/buildspec-wrangling
Browse files Browse the repository at this point in the history
Stabilize our AWS CLI Install
  • Loading branch information
ShelbyZ authored Mar 14, 2023
2 parents c47cd83 + abe9897 commit 30483a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions buildspec_load_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ phases:
- mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
- echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
# install aws
- pip3 uninstall awscli -y
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/bin --update
- which aws
- aws --version
# install aws-iam-authenticator
- curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/aws-iam-authenticator
Expand Down
5 changes: 2 additions & 3 deletions buildspec_publish_public_ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ phases:
pre_build:
commands:
- echo Publish the image to Public ECR
- pip3 uninstall awscli -y
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- which aws
- ls -l /root/.pyenv/shims/aws
- ./aws/install --bin-dir /root/.pyenv/shims --install-dir /root/.pyenv/shims --update
- ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/bin --update
- which aws
- aws --version
build:
Expand Down
2 changes: 2 additions & 0 deletions buildspec_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ phases:
pre_build:
commands:
- echo Sync latest image from Amazon ECR Public Gallery
- pip3 uninstall awscli -y
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/bin --update
- which aws
- aws --version
build:
commands:
Expand Down

0 comments on commit 30483a6

Please sign in to comment.