Skip to content

GitHub workflows Terraform version doesn't match modules required_version #2811

Closed
@andres-cloudpunk

Description

Affected components

  • Fabric modules
  • FAST
  • Blueprints
  • Other

The problem

Terraform requirement for modules have been updated to required_version = ">= 1.10.2", but the template file for GitHub workflows (fast/assets/templates/workflow-github.yaml) are still using TF_VERSION: 1.7.4

Release version

21045cb

Terraform version

Terraform v1.10.4 on darwin_arm64

Steps to reproduce

  • Use a fast stage, for example, 0-bootstrap
  • Perform an apply and create automatically providers, tfvars and workflows (either in ~/fast-config or gcs)
  • Copy over bootstrap-workflow.yaml to the .github/workflows folder
  • Push to your personal GitHub repository, then perform a Pull Request

Expected behavior

Build should execute a terraform init, terraform validate and then a terraform plan. After that it should pass or not depending on the rest of you implementation

Actual behavior

Build fails at terraform init because of a Terraform version mismatch.

Additional context

Error in GitHub action

Error: Unsupported Terraform Core version

  on .terraform/modules/automation-project/project/versions.tf line 18, in terraform:
  18:   required_version = ">= 1.10.2"

Module module.automation-project (from
git::ssh://git@github.com/*******/fast-modules.git//project?ref=v36.1.0)
does not support Terraform version 1.7.4. To proceed, either choose another
supported Terraform version or update this version constraint. Version
constraints are normally set for good reason, so updating the constraint may
lead to other errors or unexpected behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions