Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform is not found in ubuntu-latest #10796

Closed
2 of 15 tasks
ANavakahtsky opened this issue Oct 16, 2024 · 4 comments
Closed
2 of 15 tasks

Terraform is not found in ubuntu-latest #10796

ANavakahtsky opened this issue Oct 16, 2024 · 4 comments

Comments

@ANavakahtsky
Copy link

ANavakahtsky commented Oct 16, 2024

Description

Terraform scripts do not work when 'runs-on' still references ubuntu-latest in github actions, but in fact uses 24.04.1 version instead 22.04.5.

I get terraform: command not found Error: Process completed with exit code 127 error when try to run terraform init.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Operating System: Ubuntu 24.04.1 LTS
Runner Image: ubuntu-24.04 (20241006.1.0)

Is it regression?

Yes. Ubuntu 22.04.5 LTS, Runner Image ubuntu-22.04 (20241006.1.0)

Expected behavior

Terraform is installed and is a part of an Ubuntu 24.04 image.

Actual behavior

Terraform not fount in Ubuntu 24.04 runner image.

Repro steps

Try run 'terraform init' within ubuntu-latest github action.

@ANavakahtsky
Copy link
Author

runs-on: ubuntu-22.04 fixes this issue, but does not seem to be aligned with recommended strategy to use ubuntu@latest.

@ANavakahtsky ANavakahtsky changed the title Terraform is not found in ubutnu@latest Terraform is not found in ubuntu@latest Oct 16, 2024
@hemanthmanga hemanthmanga self-assigned this Oct 16, 2024
@hemanthmanga
Copy link
Contributor

Hi @ANavakahtsky Thank you for bringing this issue to our attention. We are looking into this issue and will update you on this issue after investigating.

@cahitihac
Copy link

cahitihac commented Oct 16, 2024

Terraform is not included in the list of installed softwares here: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md

But it's available here: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md

Looks like it's mentioned here: #10636

You can use the following in your workflow:

- name: Setup Terraform
   uses: hashicorp/setup-terraform@v3
   with:
      terraform_version: "^1.3.7"
      terraform_wrapper: false

@ANavakahtsky ANavakahtsky changed the title Terraform is not found in ubuntu@latest Terraform is not found in ubuntu-latest Oct 17, 2024
@hemanthmanga
Copy link
Contributor

Hi @ANavakahtsky, Due to some maintenance concerns terraform is not included in ubuntu-24 image, it can be installed at run time, As of today ubuntu-22 will be ubuntu-latest.

@hemanthmanga hemanthmanga closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
lucasrod16 added a commit to lucasrod16/oss-contribute that referenced this issue Dec 21, 2024
Terraform is no longer installed in `ubuntu-latest` github actions
runner by default, so installing the binary using the
`hashicorp/setup-terraform` action.

actions/runner-images#10636

> Removed from the Ubuntu 24.04 image due to maintenance reasons.


actions/runner-images#10796 (comment)
https://github.com/hashicorp/setup-terraform
Veki301 added a commit to wireapp/wire-server-deploy that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants