diff --git a/docs/index.md b/docs/index.md index 851b7a5..1831d23 100644 --- a/docs/index.md +++ b/docs/index.md @@ -48,6 +48,7 @@ provider "mcma" { ### Optional - `aws4_auth` (Block Set) (see [below for nested schema](#nestedblock--aws4_auth)) +- `mcma_api_key_auth` (Block Set) (see [below for nested schema](#nestedblock--mcma_api_key_auth)) - `service_registry_auth_type` (String) The auth type to use for the services endpoint of the MCMA Service Registry @@ -59,3 +60,11 @@ Optional: - `profile` (String) The AWS profile to use for authentication - `region` (String) The AWS region to use for authentication - `secret_key` (String) The AWS secret key to use for authentication. Requires that access_key also be specified + + + +### Nested Schema for `mcma_api_key_auth` + +Required: + +- `api_key` (String) The MCMA API key (header = 'x-mcma-api-key') to use for authentication diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index a616301..ea0d8a7 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -20,4 +20,12 @@ provider "mcma" { access_key = "accesskey" secret_key = "secretkey" } +} + +# MCMA API Key auth +provider "mcma" { + service_registry_url = "https://service-registry-example.mcma.io/api/" + mcma_api_key_auth { + api_key = "abcd1234efgh5678" + } } \ No newline at end of file