Skip to content

abhattacharyaNS1/terraform-provider-netactuate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Provider NetActuate

Usage

Authentication

There are the following ways of providing credentials for authentication:

  1. Static credentials
  2. Environment variable

Static credentials

NOTE:
Hard-coded credentials are not recommended in any Terraform configuration and risks secret leakage should this file ever be committed to a public version control system.

Static credentials can be provided by adding an api_key in-line in the provider block:

provider "netactuate" {
  api_key = "my-api-key"
}

Environment Variables

You can provide your credentials via the NETACTUATE_API_KEY environment variable, representing your NetActuate API Key:

provider "netactuate" {}
export NETACTUATE_API_KEY="my-api-key"
terraform apply

Development

Run locally

Do the following to run and test the TF provider locally:

  1. Install the dependencies:
    make deps 
  2. Compile and install the TF provider's binaries to the local TF plugins directory:
    make install-all
  3. Install TF providers for the test example:
    cd example
    terraform init
    Every time the provider is re-built, .terraform.lock.hcl file must be removed and the test example modules re-initialize, because the provider dependency's hash changes
  4. Build the infrastructure:
    terraform apply

About

NetActuate Terraform Provider

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 88.6%
  • HCL 6.0%
  • Makefile 5.4%