terraform-provider-fusionauth icon indicating copy to clipboard operation
terraform-provider-fusionauth copied to clipboard

Using import for fusionauth_tenant and fusionauth_application creates errors

Open Aaron-Ritter opened this issue 1 year ago • 6 comments

I am not able to import neither Default fusionauth_tenant or FusionAuth fusionauth_application with terraform plan -generate-config-out=generated_resources.tf as its causing the errors below.

To import I created import.tf with the following configuration:

import {
  to = fusionauth_tenant.default
  id = "Tenant Default ID"
}

import {
  to = fusionauth_application.FusionAuth
  id = "Applicatoin FusionAuth ID"
}
Planning failed. Terraform encountered an error while generating this plan.

│ Warning: Config generation is experimental
│ Generating configuration during import is currently experimental, and the generated configuration format may change in future versions.

│ Warning: Argument is deprecated
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)
│ In version 1.20.0 and beyond, Callback URLs can be managed via authorized_redirect_urls.

│ Error: expected "access_control_configuration.0.ui_ip_access_control_list_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "samlv2_configuration.0.default_verification_key_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "samlv2_configuration.0.logout.0.default_verification_key_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "samlv2_configuration.0.logout.0.key_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "samlv2_configuration.0.logout.0.single_logout.0.key_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "multi_factor_configuration.0.email_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "multi_factor_configuration.0.sms_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.email_verification_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.forgot_password_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.login_new_device_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.login_id_in_use_on_create_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.password_update_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.login_suspicious_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.passwordless_email_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.two_factor_method_remove_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.email_update_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.email_verified_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.login_id_in_use_on_update_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.password_reset_success_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.set_password_email_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "email_configuration.0.two_factor_method_add_template_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "form_configuration.0.self_service_form_id" to be a valid UUID, got
│   with fusionauth_application.FusionAuth,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "multi_factor_configuration.0.sms.0.messenger_id" to be a valid UUID, got
│   with fusionauth_tenant.default,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected "multi_factor_configuration.0.sms.0.template_id" to be a valid UUID, got
│   with fusionauth_tenant.default,
│   on generated_resources.tf line 1:
│   (source code not available)

│ Error: expected password_validation_rules.0.breach_detection.0.match_mode to be one of [High Medium Low], got
│   with fusionauth_tenant.default,
│   on generated_resources.tf line 163:
│   (source code not available)

│ Error: expected password_validation_rules.0.breach_detection.0.on_login to be one of [Off RecordOnly NotifyUser RequireChange], got
│   with fusionauth_tenant.default,
│   on generated_resources.tf line 163:
│   (source code not available)

Aaron-Ritter avatar Jun 30 '23 15:06 Aaron-Ritter