Skip to content

Commit

Permalink
upgrading terraform, circleci vm and awscli to python3 compatible ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
exequielrafaela committed Aug 25, 2021
1 parent 8ca46ac commit 37e8592
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ jobs:
# Automated Tests
#
test-static-code-and-linting:
machine:
image: ubuntu-1604:202007-01 # Ubuntu 16.04, Docker v19.03.12, Docker Compose v1.26.1
machine: # https://circleci.com/docs/2.0/configuration-reference/#available-machine-images
image: ubuntu-2004:202107-01 # Ubuntu 16.04, Docker v19.03.12, Docker Compose v1.26.1

# This job has been blocked because Docker Layer Caching is not available on your plan.
# Should upgrade if necessary.
Expand All @@ -30,18 +30,19 @@ jobs:
command: |
#
# Install pre-commit
pip install pre-commit
sudo -H pip3 install pre-commit
#
# Install terraform
sudo apt-get install unzip
sudo apt-get install unzip curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
wget https://releases.hashicorp.com/terraform/${TERRAFORM_VER}/terraform_${TERRAFORM_VER}_linux_amd64.zip
unzip terraform_${TERRAFORM_VER}_linux_amd64.zip
sudo mv terraform /usr/local/bin/
terraform --version
#
# Install terraform-docs
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
curl -Lo ./terraform-docs https://github.com/terraform-docs/terraform-docs/releases/download/v0.10.1/terraform-docs-v0.10.1-$(uname | tr '[:upper:]' '[:lower:]')-amd64
curl -Lo ./terraform-docs https://github.com/terraform-docs/terraform-docs/releases/download/v0.12.1/terraform-docs-v0.12.1-$(uname | tr '[:upper:]' '[:lower:]')-amd64
chmod +x ./terraform-docs
sudo mv ./terraform-docs /usr/local/bin/terraform-docs
#
Expand All @@ -50,7 +51,7 @@ jobs:
- run:
name: Install awscli
command: sudo -H pip install awscli
command: sudo -H pip3 install awscli

- run:
name: Configure awscli
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SHELL := /bin/bash
MAKEFILE_PATH := ./Makefile
MAKEFILES_DIR := ./@bin/makefiles
MAKEFILES_VER := v0.1.5
MAKEFILES_VER := v0.1.33

help:
@echo 'Available Commands:'
Expand All @@ -19,5 +19,7 @@ init-makefiles: ## initialize makefiles

-include ${MAKEFILES_DIR}/circleci/circleci.mk
-include ${MAKEFILES_DIR}/release-mgmt/release.mk
-include ${MAKEFILES_DIR}/terraform13/terraform13.mk
-include ${MAKEFILES_DIR}/terratest13/terratest13.mk
-include ${MAKEFILES_DIR}/terraform14/terraform14-root-context.mk
-include ${MAKEFILES_DIR}/terraform14/terraform14.mk
-include ${MAKEFILES_DIR}/terratest14/terratest14.mk

0 comments on commit 37e8592

Please sign in to comment.