Skip to content

Add specific Terraform state name URI requirements

Timo Furrer requested to merge terraform-state-api-allow-dots into master

What does this MR do and why?

This change allows everything in a Terraform state name except slashes. It's the same requirement as for namespaces and projects.

This solves a common confusion that when a state name contained a dot it resulted in a 404 - e.g. see #219460 (closed) or #218906 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

A pipeline like the following:

include:
  - template: Terraform.latest.gitlab-ci.yml

variables:
  TF_STATE_NAME: terraform.tfstate

Works now can successfully operates on a state with a dot in its name:

image

MR acceptance checklist

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

Merge request reports