Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.28 KB

File metadata and controls

38 lines (22 loc) · 1.28 KB

checkly-terraform-getting-started

A sample repository showing a minimal Terraform Checkly setup.

Prerequisites

You will need:

  1. A recent version of HashiCorp Terraform installed.
  2. An account on Checkly

Setup

First, you will need an API Key for your Checkly user. Go to the API keys tab in your user settings and click Create API key.

Get your User API key and add it to your env using your terminal:

$ export TF_VAR_checkly_api_key=cu_xxx

You also need to set your target account ID, which you can find under your account settings.

If you don't have access to account settings, please contact your account owner/admin.

$ export TF_VAR_checkly_account_id=xxx

Running terraform init will install the Checkly Terraform provider for you, as well as initialising your project.

Usage

Running terraform apply will have Terraform draft a plan and ask you to confirm by typing yes. Once that is done, Terraform will go ahead and create the resources for you.

Links

See Checkly's Terraform Getting Started docs for more information.