Skip to content

Commit

Permalink
feat: add aws cli (#25)
Browse files Browse the repository at this point in the history
* feat: add aws cli to Dockerfile

* chore(docs): update docs with aws cli

---------

Co-authored-by: Piotr Sierkin <piotr.sierkin@getindata.com>
  • Loading branch information
Santhin and Piotr Sierkin authored Jul 3, 2023
1 parent c7eaae0 commit 9d63fe5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ That custom `atlantis` docker image was created in order to install few helpful
- `glab` (via asdf) - GitLab CLI client
- `az-cli` (via pip) - Azure CLI
- `Infracost` - cloud cost estimates
- `aws-cli` (via asdf) - AWS CLI

Files found in the repo:
- `Dockerfile` is based on an official atlantis docker file (<https://github.com/runatlantis/atlantis/blob/v0.17.3/Dockerfile>) with some additional tweaks (asdf installation and configuration)
Expand Down
8 changes: 6 additions & 2 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ARG CHECKOV_VERSION=2.1.244
ARG INFRACOST_VERSION=v0.10.18
ARG TFLINT_VERSION=0.45.0
ARG TERRAFORM_DOCS_VERSION=0.16.0
ARG AWS_CLI_VERSION=2.12.6

RUN set -ex && \
apk update && \
Expand Down Expand Up @@ -79,7 +80,8 @@ RUN gosu atlantis bash -l -c " \
asdf plugin-add gojq && \
asdf plugin-add tflint && \
asdf plugin-add terraform-docs && \
asdf plugin-add yq"
asdf plugin-add yq && \
asdf plugin add awscli"
# Install default versions and define them globally
RUN gosu atlantis bash -l -c " \
cd /home/atlantis/ && \
Expand All @@ -93,6 +95,7 @@ RUN gosu atlantis bash -l -c " \
asdf install tflint ${TFLINT_VERSION} && \
asdf install terraform-docs ${TERRAFORM_DOCS_VERSION} && \
asdf install yq ${YQ_VERSION} && \
asdf install awscli ${AWS_CLI_VERSION} && \
asdf global kubectl ${K8S_VERSION} && \
asdf global helm ${HELM_VERSION} && \
asdf global terraform ${TF_VERSION} && \
Expand All @@ -102,7 +105,8 @@ RUN gosu atlantis bash -l -c " \
asdf global gojq ${GOJQ_VERSION} && \
asdf global tflint ${TFLINT_VERSION} && \
asdf global terraform-docs ${TERRAFORM_DOCS_VERSION} && \
asdf global yq ${YQ_VERSION}"
asdf global yq ${YQ_VERSION} && \
asdf global awscli ${AWS_CLI_VERSION}"

# Additional cleanup
RUN rm -rf /tmp/*
Expand Down

0 comments on commit 9d63fe5

Please sign in to comment.