Skip to content

Commit

Permalink
Merge pull request #40 from rome/sebmck/env
Browse files Browse the repository at this point in the history
Use Terraform provider environment variable convention - fixes #19
  • Loading branch information
RutvikS-crest authored Sep 6, 2022
2 parents 7d9187b + 568a875 commit cf9a6cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dme/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func Provider() terraform.ResourceProvider {
Type: schema.TypeString,
Required: true,
Description: "API key for HTTP call",
DefaultFunc: schema.EnvDefaultFunc("apikey", nil),
DefaultFunc: schema.EnvDefaultFunc("DME_API_KEY", nil),
},

"secret_key": &schema.Schema{
Type: schema.TypeString,
Required: true,
Description: "Secret Key for HMAC",
DefaultFunc: schema.EnvDefaultFunc("secretkey", nil),
DefaultFunc: schema.EnvDefaultFunc("DME_SECRET_KEY", nil),
},

"insecure": &schema.Schema{
Expand Down

0 comments on commit cf9a6cc

Please sign in to comment.