FusionAuth / terraform-provider-fusionauth

FusionAuth Terraform Provider
https://registry.terraform.io/providers/FusionAuth/fusionauth/latest
Apache License 2.0
35 stars 53 forks source link

[Documentation] API Key Resource arguments #264

Open RLMarkStrudwick opened 6 months ago

RLMarkStrudwick commented 6 months ago

Hello! 👋 It looks like there is a small typo in the documentation for the API Key Resource

The example shows that the permissions_endpoints argument accepts an endpoint and HTTP verb arguments.

resource "fusionauth_api_key" "example" {
  tenant_id   = "94f751c5-4883-4684-a817-6b106778edec"
  description = "my super secret key"
  key         = "super-secret-key"
  permissions_endpoints {
    endpoint = "/api/application"
    get      = true
    delete   = true
    patch    = true
    post     = true
    put      = true
  }
}

However, the "Argument Reference" section describes that the endpoint and HTTP verb arguments should be included on the lambda_reconcile_id argument, rather than the permissions_endpoints argument. Also, the description on both arguments looks to be the wrong way around. image