-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
29 lines (21 loc) · 1.02 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -euxo pipefail # fail hard incase of any errors or typo
######## Checkov Installation ########
sudo apt-get update
sudo apt-get install -y pipx
pipx install -y checkov # by default packages installed with pipx are located in "$USER/.local/bin"
pipx ensurepath # add installed packages into "$PATH"
source ~/.bashrc
######## Terraform installation ########
sudo apt-get update && sudo apt-get install -y gnupg wget curl software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install -y terraform
terraform version
checkov --version