WA3383 CLI Setup
Terraform CLI and AWS CLI on Ubuntu
Terraform CLI
sudo ls: requests the sudo password before the install, so no prompt interrupts the later commandswget: downloads the HashiCorp signing key into the system keyringsecho: adds the HashiCorp apt repository for the machine's Ubuntu release and CPU architectureapt updateandapt install: refresh the package lists and install Terraform
sudo lswget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpgecho "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.listsudo apt update && sudo apt install terraform
AWS CLI
sudo ls: requests the sudo password before the install, so no prompt interrupts the later commandscurl: downloads the AWS CLI v2 installer for x86_64 Linuxunzip: extracts the installer into./aws./aws/install: installs the AWS CLI in/usr/local/aws-cliand links theawscommand in/usr/local/bin
sudo lscurl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"unzip awscliv2.zipsudo ./aws/install