Skip to content

GreyNoise-Intelligence/terraform-provider-greynoise

Repository files navigation

Terraform Greynoise Provider

The GreyNoise Provider enables Terraform to manage GreyNoise sensors and personas.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine.

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

make testacc

Local Development/Testing

This repo provides a Docker-based environment so you don't have to install Terraform on your laptop. This environment can be used to run the examples/complete. To get started perform the following actions:

  1. Build the provider for the docker environment:
make docker-build
  1. Set your environment by setting the GreyNoise API key as an environment variable:
export GN_API_KEY=<API_KEY>
  1. Run the interactive Docker environment:
make docker-shell 
  1. Update the Terraform variables file terraform.tfvars. See the variables.tf file for explanation of variables. You need access to the GreyNoise sensors feature to run this example.
terraform init 
terraform plan