Azure - Terraform
Step 0: Requirements
- An Azure subscription (free to start)
- Docker
Step 1: Generate a new Runiac project
If you haven't already, generate a new Runiac project using the starter:
runiac new my-runiac-terraform-project --url github.com/runiac/runiac-starter-terraform-azure-hello-world
Step 2: Run a deploy
Run a local deployment in the newly created my-runiac-terraform-project
folder:
runiac deploy -a <azure-subscription-id> --local
Open step1/default/main.tf
and start adding resources. Once ready to test run the same runiac deploy
command.
Step 3: Run a destroy (Clean up)
Finally, You can clean up any resources that were created by runiac with the --self-destroy
flag:
runiac deploy -a <azure-subscription-id> --local --self-destroy
That's it!
Congratulations! You've successfully run, modified and destroyed your Runiac project.