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