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
4fe98b99
Commit
4fe98b99
authored
Jan 28, 2022
by
Tiger Watson
Committed by
Marcia Ramos
Jan 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs section for managing individual Terraform state versions
parent
e14c19ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/user/infrastructure/iac/terraform_state.md
doc/user/infrastructure/iac/terraform_state.md
+18
-0
No files found.
doc/user/infrastructure/iac/terraform_state.md
View file @
4fe98b99
...
...
@@ -384,6 +384,24 @@ Additional improvements to the
[
graphical interface for managing state files
](
https://gitlab.com/groups/gitlab-org/-/epics/4563
)
are planned.
## Manage individual Terraform state versions
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/207347) in GitLab 13.4.
Individual state versions can be managed using the GitLab REST API.
Users with the
[
Developer role
](
../../permissions.md
)
can retrieve state versions using their serial number. To retrieve a version:
```
shell
curl
--header
"Private-Token: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/<your_project_id>/terraform/state/<your_state_name>/versions/<version-serial>"
```
Users with the
[
Maintainer role
](
../../permissions.md
)
can remove state versions using their serial number. To remove a version:
```
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>/versions/<version-serial>"
```
## Remove a state file
Users with Maintainer and greater
[
permissions
](
../../permissions.md
)
can use the
...
...
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