I get "command not found" for most things

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
- image: circleci/terraform:0.11.10
- 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.

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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.