Skip to content

Update terraform init default state name (default)

What does this MR do and why?

Update terraform init default state name (default)

Previously, the default state name in the UI was: <YOUR-STATE-NAME>.

Often times users forget to update this, and end up pushing a state to GitLab with the name <YOUR-STATE-NAME>.

Our base terraform template defines the default state name as: default.

https://gitlab.com/gitlab-org/gitlab/-/blob/2bd49ec79a43666fa74c2ebd2d5daccd072330f8/lib/gitlab/ci/templates/Terraform/Base.gitlab-ci.yml#L16

This updates the UI to use the same default.

Changelog: changed

Screenshots or screen recordings

before after
image image

How to set up and validate locally

  1. Access the terraform state page for a project- such as http://gdk.test:3000/flightjs/Flight/-/terraform
  2. Select Copy Terraform init command

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lee Tickett

Merge request reports