Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can we use fusionauth_tenant.connector_policy #206

Open
mabead opened this issue May 15, 2023 · 0 comments
Open

how can we use fusionauth_tenant.connector_policy #206

mabead opened this issue May 15, 2023 · 0 comments

Comments

@mabead
Copy link

mabead commented May 15, 2023

I have a generic connector defined like this:

resource "fusionauth_generic_connector" "test" {
  name               = "Test"
  authentication_url = "<my url>"
  connect_timeout    = 5000
  read_timeout       = 10000
  debug              = true
}

I then try to use it as in the code samples:

resource "fusionauth_tenant" "main" {
  connector_policy {
      connector_id = fusionauth_generic_connector.test.id
      domains      = ["*"]
      migrate      = true
  }
  [...]

When I do a terraform apply, I get this error:

module.fusionauth.fusionauth_tenant.main: Modifying... [id=c58324ad-c652-4ad6-8d29-99abe9aa74b5]
╷
│ Error: unexpected status code: 400(Bad Request) Errors: tenant.connectorPolicies: Your connector policies in the property [tenant.connectorPolicies] are missing the FusionAuth Connector. You must include this Connector for every Tenant.
│
│   with module.fusionauth.fusionauth_tenant.main,
│   on ..\shared\main.tf line 68, in resource "fusionauth_tenant" "main":
│   68: resource "fusionauth_tenant" "main" {
│
╵

Could you please provide an example that shows how to configure a list of connectors?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant