Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dc7d64de
Commit
dc7d64de
authored
Oct 30, 2020
by
Nicholas Klick
Committed by
Amy Qualls
Oct 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for removing a State file
parent
ac137926
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
doc/user/infrastructure/index.md
doc/user/infrastructure/index.md
+8
-0
No files found.
doc/user/infrastructure/index.md
View file @
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
)
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment