generated from masterpointio/terraform-module-template
-
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.
chore: remove examples/complete root module
- Loading branch information
Showing
4 changed files
with
29 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Complete Example | ||
|
||
This example demonstrates how to use the spacelift-automation component to manage Spacelift stacks, including the ability for Spacelift to manage its own configuration. | ||
|
||
Normally, this directory would contain a simple root module to spin up a basic example. To showcase a more practical use case where Spacelift manages its own infrastructure, we’ve moved the configuration to the expected path: [examples/complete/components/spacelift-automation/](./components/spacelift-automation/). | ||
|
||
By doing this, we provide an example of how to set up Spacelift to automate the management of your infrastructure stacks, including itself. | ||
|
||
## Use the Example | ||
|
||
1. Prerequisites: Replace [backend.tf.json](./components/spacelift-automation/backend.tf.json), [example.tfvars](./components/spacelift-automation/tfvars/example.tfvars), and [example.yaml](./components/spacelift-automation/stacks/example.yaml) values with your own. The values in this repo are hardcoded for Masterpoint's automation and testing needs. | ||
1. Navigate to the spacelift-automation component directory: | ||
```sh | ||
cd ./components/spacelift-automation/ | ||
``` | ||
1. Initialize Terraform: | ||
```sh | ||
tofu init | ||
``` | ||
1. Select the worspace: | ||
```sh | ||
tofu workspace select example | ||
``` | ||
1. Review the Terraform plan: | ||
```sh | ||
tofu plan -var-file tfvars/example.tfvars | ||
``` | ||
This will set up the Spacelift stack that manages itself. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.