Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Example Terraform Configuration

This folder contains example Terraform configuration, demonstrating the usage and capabilities of terraform-provider-rollbar.

Usage Instructions

The following are step-by-step instructions for demonstrating terraform-provider-rollbar using the example Terraform configuration files.


  1. First, change directories to the repo checkout:

    cd terraform-provider-rollbar
  2. In your Rollbar account, under Account Access Tokens, create a new token and grant it write access.

  3. 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
  4. Change directories into example folder.

    cd example
  5. Make your Rollbar API key available as an environment variable.

    export ROLLBAR_API_KEY=<yourNewToken>
  6. Initialize Terraform - the Rollbar provider will be automatically downloaded and installed.

    terraform init
  7. Examine Terraform's plan to create resources on Rollbar:

    terraform plan
  8. Apply the plan - meaning Terraform will create the resources it described in the plan.

    terraform apply  # enter yes if you like the plan
  9. Check changes in Rollbar web UI.


To delete the resources created by Terraform, run:

terraform destroy  # enter yes to confirm