/nerd-days-terraform

Nerd Days: Reducing toil with Terraform

Primary LanguageHCLApache License 2.0Apache-2.0

Nerd Days: Reducing toil with Terraform

Requirements

To get the most value out of the following, you should have a basic understanding of Terraform (HCL semantics are not covered), and a New Relic account that you can test with.

  • Terraform > 0.13.0
  • New Relic Account
    • User with Admin role
    • Application reporting to New Relic

References

Initial Setup

This lab sets up the basics needed to connect to New Relic via Terraform.

Setup

Environment

It is recommended to store secrets in Environmental variables for these labs instead of the main.tf file.

Environment setup for bash:

export NEW_RELIC_ACCOUNT_ID=
export NEW_RELIC_API_KEY=
export NEW_RELIC_REGION="US"   # or "EU"

Steps

  1. Configure environment or set values in main.tf
  2. Run terraform init
  3. Run terraform plan

Labs

  • Each lab builds on the previous, so you'll need to ensure that they are working before moving on.
  • Each lab* directory is a module, so moving to the next lab involves uncommenting the module import in the root main.tf file.

Instructions