https://github.com/opslevel/terraform-opslevel-modules
Reuseable Terraform modules that create OpsLevel resources
https://github.com/opslevel/terraform-opslevel-modules
Last synced: 3 months ago
JSON representation
Reuseable Terraform modules that create OpsLevel resources
- Host: GitHub
- URL: https://github.com/opslevel/terraform-opslevel-modules
- Owner: OpsLevel
- License: mit
- Created: 2024-08-22T13:46:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T19:51:02.000Z (over 1 year ago)
- Last Synced: 2024-10-24T01:22:39.036Z (over 1 year ago)
- Language: HCL
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpsLevel Terraform Modules
Customizable blueprint for creating and managing an [OpsLevel](https://opslevel.com) account and its resources using Terraform.
## Getting Started
Open a terminal and run the following:
```bash
brew install go-task
```
Once `task` is installed run `task --list` to see the available tasks.
### Layout
The `./modules` directory contains Terraform config files that make up the blueprint used to populate the OpsLevel account with data.
The `./workspace` directory contains the `main.tf` file that actually uses the contents in `./modules`. This is where inputs should
be defined to uniquely customize each account.
## Updating An OpsLevel Account
First, **ensure OPSLEVEL_API_TOKEN is set** via `export OPSLEVEL_API_TOKEN=` - this is how Terraform knows which account to update!
For a preview of planned changes,run `task plan`. No changes will be made with this command.
To apply changes, run `task apply`. This will refresh Terraform's state then prompt you for approval to apply changes.
> IMPORTANT: Managed resources/data are stored in Terraform's state, which is this local file `workspace/terraform.tfstate`. If this is lost, Terraform will not be able to properly apply changes.
### OpsLevel account Clean up
To remove all Terraform managed data, run `task destroy`. Terraform will prompt you for approval before deleting all managed resources.