dikhan / terraform-provider-openapi

OpenAPI Terraform Provider that configures itself at runtime with the resources exposed by the service provider (defined in a swagger file)
Apache License 2.0
274 stars 48 forks source link

[TechDebt] Usage docs update: envvar config option isn't available to other contexts (IDE extensions) #360

Open pl4nty opened 1 year ago

pl4nty commented 1 year ago

What problem does this Pull Request solve?

The swagger URL environment variable OTF_VAR_<provider_name>_SWAGGER_URL isn't available in contexts like VSCode's Terraform extension, so language server features like autocomplete will fail. This was fairly difficult to diagnose and resolve.

Type of change

What type of change does your code introduce to the provider? Please put an x (w/o heading/trailing white spaces) in the boxes that apply:

Checklist

Please put an x (w/o heading/trailing white spaces) in the boxes that apply: