Skip to content

Commit

Permalink
Mark api_token as optional (#147)
Browse files Browse the repository at this point in the history
Terraform validate fails when api_token is not specified but `OKTA_API_TOKEN` environment variable is specified.
  • Loading branch information
jgeurts committed Oct 29, 2020
1 parent 5b059a6 commit 9722657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Provider() terraform.ResourceProvider {
},
"api_token": {
Type: schema.TypeString,
Required: true,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("OKTA_API_TOKEN", nil),
Description: "API Token granting privileges to Okta API.",
},
Expand Down

0 comments on commit 9722657

Please sign in to comment.