Skip to content

jbrmg/terraform-provider-conformity

 
 

Repository files navigation

How to set up local machine:

1. Navigate to project directory:

cd /path/terraform-provider-conformity

2. Install dependencies:

go mod tidy
go mod vendor

3. Create the Artifact:

make install

4. Now, you can test terraform code:

cd example/path-to-main/
terraform init
terraform apply

Notes:

  • for your own config, create a file name terraform.tfvars
  • add the following:
region  = "region"
apikey  = "apikey"

Turn on debug:

export TF_LOG_CORE=TRACE
export TF_LOG_PROVIDER=TRACE

How to protect API keys

1. with file

Create a file name terraform.tfvars and add all necessary variables here

Ensure terraform.tfvars is included in .gitignore so these secrets are not accidentally pushed to a remote git repository.

2. with environment variables

Terraform provides a way of reading variables from the environment: https://www.terraform.io/docs/cli/config/environment-variables.html#tf_var_name

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 80.2%
  • HCL 15.4%
  • Shell 3.6%
  • Other 0.8%