Documentation: https://registry.terraform.io/providers/newrelic/newrelic/latest/docs
Install Terraform
brew install terraform
Configure New Relic provider
terraform init
Add your account settings to your .bash_profile
or .bashrc
export NEW_RELIC_API_KEY="<your New Relic Personal API key>"
export NEW_RELIC_ADMIN_API_KEY="<your New Relic Admin API key>"
export NEW_RELIC_REGION="US"
Apply the changes
terraform apply