https://github.com/happypathway/tfe-backup
https://github.com/happypathway/tfe-backup
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/happypathway/tfe-backup
- Owner: HappyPathway
- Created: 2018-10-05T17:59:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T17:22:56.000Z (over 7 years ago)
- Last Synced: 2025-01-08T06:15:34.950Z (over 1 year ago)
- Language: Python
- Size: 5.57 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TFE_WorkspaceBackup
This tool provides the ability to backup terraform enterprise workspaces.
It will use the TFE Rest API and collect data about your workspaces, then using templates, will create proper terraform configurations to allow you to rebuild the workspaces.
## Usage
### Backup All Workspaces in Organization:
The following command will:
- backup all workspaces in an organization
- format the configuration files correctly
- validate the configuration files
- perform init to to update the providers
```bash
tfe-backup -o -b --fmt --init --validate
```
### Backup Single Workspace in Organization:
The following command will:
- backup a single in an organization
- format the configuration files correctly
- validate the configuration files
- perform init to to update the providers
```bash
tfe-backup -o -w -b --fmt --init --validate
```
### Clone Single Workspace in Organization:
The following command will:
- backup a single in an organization
- set name of workspace in configuration to new workspace name
- write out configuration for new workspace into a properly named configuration file
- format the configuration files correctly
- validate the configuration files
- perform init to to update the providers
```bash
tfe-backup -o -w --new-ws --fmt --init --validate
```