Commit 6b59284b authored by Amy Qualls's avatar Amy Qualls

Merge branch 'nicholasklick-master-patch-09489' into 'master'

Add docs for removing a State file

See merge request gitlab-org/gitlab!46300
parents 455ddb38 dc7d64de
...@@ -324,6 +324,14 @@ commands will detect it and remind you to do so if necessary. ...@@ -324,6 +324,14 @@ commands will detect it and remind you to do so if necessary.
If you type `yes`, it copies your state from the old location to the new If you type `yes`, it copies your state from the old location to the new
location. You can then go back to running it from within GitLab CI. location. You can then go back to running it from within GitLab CI.
## Removing a State file
You can only remove a state file by making a request to the API, like the following example:
```shell
curl --header "Private-Token: <your_access_token>" --request DELETE "https://gitlab.example.com/api/v4/projects/<your_project_id/terraform/state/<your_state_name>"
```
## Output Terraform Plan information into a merge request ## Output Terraform Plan information into a merge request
Using the [GitLab Terraform Report artifact](../../ci/pipelines/job_artifacts.md#artifactsreportsterraform), Using the [GitLab Terraform Report artifact](../../ci/pipelines/job_artifacts.md#artifactsreportsterraform),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment