I get "command not found" for most things


#1

In the config.yml file, I’m trying to install or run the AWS CLI. I get “command not found” on almost everything.

version: 2
jobs:
build:
docker:
- image: circleci/terraform:0.11.10
steps:
- checkout
- run:
name: Terraform
command: terraform version
- run:
name: AWS
command: aws sts get-caller-identity
- run:
name: Print the Current Time
command: date

The Terraform command works but the aws command does not. I would have assumed AWS CLI was installed for Terraform.

I have tried to install the AWS CLI and pip with “sudo apt-get…”, apt-get update", “apt update”, “sudo apt-get install python-pip”, everything I can think of but I always get “command not found”.

Please advise.


#2

I couldn’t figure this out so I just built my own docker image.