-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from OpsLevel/db/main-readme
README high level overview
- Loading branch information
Showing
2 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
# 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=<YOUR_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. |