This folder contains example Terraform configuration, demonstrating the usage
and capabilities of terraform-provider-rollbar
.
The following are step-by-step instructions for demonstrating
terraform-provider-rollbar
using the example Terraform configuration files.
-
First, change directories to the repo checkout:
cd terraform-provider-rollbar
-
In your Rollbar account, under Account Access Tokens, create a new token and grant it write access.
-
Install terraform. On Mac, Brew is the easiest way (assuming you have Brew installed). See terraform installation docs for instructions on all supported platforms.
brew install terraform
-
Change directories into example folder.
cd example
-
Make your Rollbar API key available as an environment variable.
export ROLLBAR_API_KEY=<yourNewToken>
-
Initialize Terraform - the Rollbar provider will be automatically downloaded and installed.
terraform init
-
Examine Terraform's plan to create resources on Rollbar:
terraform plan
-
Apply the plan - meaning Terraform will create the resources it described in the plan.
terraform apply # enter yes if you like the plan
-
Check changes in Rollbar web UI.
To delete the resources created by Terraform, run:
terraform destroy # enter yes to confirm