rollbar / terraform-provider-rollbar

Terraform provider for Rollbar
https://rollbar.com
MIT License
28 stars 13 forks source link

Improve instructions for using example TF config #217

Closed jmcvetta closed 3 years ago

jmcvetta commented 3 years ago

Per Ian Flanagan in Slack:

what I am trying to say was that I cloned the repo and went into the example directory and terraform init failed saying there were duplicates, so initially it didn't work until I simply created a main.tf and removed the other files, also it was not clear that you had to export the rollbar access token so the readme should be updated a bit to be more clear ...it doesn't matter to me but ideally if you clone the repo and utilize the readme it should guide you on what you need to do

here is an example of some documentation I wrote once I got it working

Clone entire sales-engineering repo

cd TerraForm dir

in your account under 'Account Access Tokens' create a new token and grant it 'write access' you don't have to do this but i did in this example

Then run 

cd demo

install terraform (using brew is the easiest way assuming you have brew installed) 

brew install terraform

export ROLLBAR_API_KEY=<yourNewToken>

terraform init

terraform plan

terraform apply (enter yes if you like the plan) 

See in RB UI 

To delete 

terraform destroy (enter yes to confirm)