Closed LaurentEscalier closed 3 years ago
If you're leveraging the default executor, you likely don't need to install terraform as well - if you need a specific version, you should pass that through to the executor or use another Docker image :)
version: 2.1
orbs:
terraform: circleci/terraform@1.2.0
jobs:
# Terraform
deploy_infrastructure:
executor:
name: terraform/default
image: hashicorp/terraform:0.13.5
working_directory: ~/my-repository/infrastructure
steps:
- attach_workspace:
name: Attach workplace from previous job(s)
at: ~/my-repository
Thanks @gmemstr ! That solves my problem :)
Orb Version
1.2.0
Describe the bug
When using the terraform/install command to install a specific version of Terraform, the command fails executing
sudo mv terraform /usr/local/bin
with the following error:/bin/sh: sudo: not found
.To Reproduce
circleci/terraform@1.2.0
orb in your pipelineterraform/default
terraform/install
command to the jobterraform/install
stepExpected behavior
EITHER The
terraform/default
execution environment is configured to support the execution of theterraform/install
command.OR The orb documentation mentions the additional steps required to prepare the execution environment for the execution of the
terraform/install
command.Additional context