Re-implement terraform fmt job in terraform-module.yml
Description
After 'fmt' job was deleted from the upstream pipeline we can't refer to it from our templates
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/149659
Further details
We need to reuse the job from terraform-lint.yml
. For example, if we need to preserve the same behaviour we can do the following:
add this to the terraform-module.yml
- project: 'uis/devops/continuous-delivery/ci-templates'
file: '/terraform-lint.yml'
ref: v4.3.1
variables:
TERRAFORM_DEPLOY_IMAGE: registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/logan-terraform
TERRAFORM_DEPLOY_VERSION: "1.4"
TF_DATA_DIR: ${CI_PROJECT_DIR}/terraform_data
TERRAFORM_VALIDATE_DISABLED: true
TFLINT_DISABLED: true
TRIVY_DISABLED: true
As a result we'll have terraform-fmt job (our) instead of deleted fmt job.
Task list
-
Update the ci template -
indentify all project where terraform-module.yml is used and bump version to latest
Acceptance criteria
Links/references
Edited by Dmitrii Unterov