fivetran / terraform-provider-fivetran

Terraform Provider for Fivetran
https://fivetran.com
Apache License 2.0
40 stars 24 forks source link

Creating destinations fails with provider error: "When applying changes to fivetran_destination, provider produced an unexpected new value:" #366

Closed aarondodd closed 1 month ago

aarondodd commented 1 month ago

Describe the bug Creating a new Snowflake destination with a keypair with passphrase, Terraform reports:

│ Error: Provider produced inconsistent result after apply │ │ When applying changes to fivetran_destination.snowflake["test"], provider │ "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .config.passphrase: inconsistent values for
│ sensitive attribute. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker.

To Reproduce

resource "fivetran_destination" "destination" { for_each = local.destinations

group_id          = fivetran_group.destination[each.key].id
service           = each.value["service"]
region            = each.value["region"]
time_zone_offset  = each.value["time_zone_offset"]
# Snowflake:
dynamic "config" {
    for_each = each.value["service"] == "snowflake" ? [each.value] : []

    content {
        auth            = each.value.config["auth"]
        connection_type = each.value.config["connection_type"]
        database        = each.value.config["database"]
        host            = each.value.config["host"]
        passphrase      = each.value.config["passphrase"]
        port            = each.value.config["port"]
        private_key     = each.value.config["private_key"]
        user            = each.value.config["user"]
    }
}

# Destroying destinations will be a catastrophic outage if not intended, so block Terraform from doing so
lifecycle {
    prevent_destroy = true
}

}

Expected behavior It is expected that the passphrase sent would be honored and not produce an inconsistent result

Logs & Output

2024-10-07T08:45:17.677-1000 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/aws/5.33.0/windows_amd64/terraform-provider-aws_v5.33.0_x5.exe id=22832 2024-10-07T08:45:17.678-1000 [DEBUG] provider: plugin exited 2024-10-07T08:45:17.678-1000 [DEBUG] created provider logger: level=debug 2024-10-07T08:45:17.678-1000 [INFO] provider: configuring client automatic mTLS 2024-10-07T08:45:17.683-1000 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/fivetran/fivetran/1.3.2/windows_amd64/terraform-provider-fivetran_v1.3.2.exe args=[".terraform/providers/registry.terraform.io/fivetran/fivetran/1.3.2/windows_amd64/terraform-provider-fivetran_v1.3.2.exe"] 2024-10-07T08:45:17.697-1000 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/fivetran/fivetran/1.3.2/windows_amd64/terraform-provider-fivetran_v1.3.2.exe pid=36568 2024-10-07T08:45:17.698-1000 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/fivetran/fivetran/1.3.2/windows_amd64/terraform-provider-fivetran_v1.3.2.exe 2024-10-07T08:45:17.729-1000 [INFO] provider.terraform-provider-fivetran_v1.3.2.exe: configuring server automatic mTLS: timestamp=2024-10-07T08:45:17.728-1000 2024-10-07T08:45:17.752-1000 [DEBUG] provider: using plugin: version=6 2024-10-07T08:45:17.752-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2024-10-07T08:45:17.752-1000 2024-10-07T08:45:17.763-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=7a3130e5-1418-43dd-7855-d946f69cce40 tf_resource_type=fivetran_group tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:196 timestamp=2024-10-07T08:45:17.763-1000 2024-10-07T08:45:17.764-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_req_id=7a3130e5-1418-43dd-7855-d946f69cce40 tf_resource_type=fivetran_group tf_rpc=PlanResourceChange @module=sdk.framework tf_attribute_path="AttributeName(\"created_at\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran timestamp=2024-10-07T08:45:17.763-1000 fivetran_group.destination["adodd_test"]: Creating... 2024-10-07T08:45:17.764-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_req_id=7a3130e5-1418-43dd-7855-d946f69cce40 tf_resource_type=fivetran_group tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_attribute_path="AttributeName(\"id\")" timestamp=2024-10-07T08:45:17.763-1000 2024-10-07T08:45:17.764-1000 [INFO] Starting apply for fivetran_group.destination["adodd_test"] 2024-10-07T08:45:17.765-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"last_updated\")" @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=7a3130e5-1418-43dd-7855-d946f69cce40 tf_resource_type=fivetran_group tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:17.763-1000 2024-10-07T08:45:17.765-1000 [DEBUG] fivetran_group.destination["adodd_test"]: applying the planned Create change 2024-10-07T08:45:19.618-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_req_id=c5799530-d1ef-51b1-487a-539101cc3412 tf_attribute_path=name tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_resource_type=fivetran_group timestamp=2024-10-07T08:45:19.618-1000 fivetran_group.destination["adodd_test"]: Creation complete after 2s [id=figment_hornblende] 2024-10-07T08:45:19.620-1000 [DEBUG] State storage *remote.State declined to persist a state snapshot 2024-10-07T08:45:19.629-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Marking Computed attributes with null configuration values as unknown (known after apply) in the plan to prevent potential Terraform errors: @module=sdk.framework tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:196 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:19.628-1000 2024-10-07T08:45:19.629-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_attribute_path="AttributeName(\"daylight_saving_time_enabled\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran timestamp=2024-10-07T08:45:19.628-1000 2024-10-07T08:45:19.630-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_attribute_path="AttributeName(\"trust_certificates\")" timestamp=2024-10-07T08:45:19.628-10002024-10-07T08:45:19.630-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"snapshot_retention_period\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.629-1000 2024-10-07T08:45:19.631-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"config\").AttributeName(\"is_private_link_required\")" tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:19.629-1000 2024-10-07T08:45:19.631-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"create_external_tables\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.629-1000 2024-10-07T08:45:19.632-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_attribute_path="AttributeName(\"config\").AttributeName(\"security_protocol\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.629-1000 2024-10-07T08:45:19.632-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_attribute_path="AttributeName(\"config\").AttributeName(\"tunnel_port\")" timestamp=2024-10-07T08:45:19.630-1000 2024-10-07T08:45:19.633-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"table_format\")" tf_rpc=PlanResourceChange tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:19.630-1000 2024-10-07T08:45:19.633-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"is_redshift_serverless\")" timestamp=2024-10-07T08:45:19.630-1000 2024-10-07T08:45:19.634-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_rpc=PlanResourceChange tf_attribute_path="AttributeName(\"config\").AttributeName(\"always_encrypted\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework timestamp=2024-10-07T08:45:19.634-1000 2024-10-07T08:45:19.635-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"public_key\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.634-1000 2024-10-07T08:45:19.635-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"external_id\")" timestamp=2024-10-07T08:45:19.634-1000 2024-10-07T08:45:19.635-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"snowflake_cloud\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_provider_addr=registry.terraform.io/fivetran/fivetran timestamp=2024-10-07T08:45:19.635-1000 2024-10-07T08:45:19.636-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange @module=sdk.framework @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_attribute_path="AttributeName(\"config\").AttributeName(\"schema_registry\")" timestamp=2024-10-07T08:45:19.635-1000 2024-10-07T08:45:19.636-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"connection_method\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.635-1000 2024-10-07T08:45:19.637-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"sasl_mechanism\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_rpc=PlanResourceChange tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 timestamp=2024-10-07T08:45:19.635-1000 2024-10-07T08:45:19.637-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange tf_attribute_path="AttributeName(\"config\").AttributeName(\"auth_type\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 timestamp=2024-10-07T08:45:19.635-1000 2024-10-07T08:45:19.637-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_attribute_path="AttributeName(\"config\").AttributeName(\"data_format\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination @module=sdk.framework timestamp=2024-10-07T08:45:19.635-1000 2024-10-07T08:45:19.638-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_resource_type=fivetran_destination @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"replication_factor\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.636-1000 2024-10-07T08:45:19.638-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_rpc=PlanResourceChange tf_attribute_path="AttributeName(\"config\").AttributeName(\"schema_compatibility\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:19.638-1000 2024-10-07T08:45:19.639-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_attribute_path="AttributeName(\"config\").AttributeName(\"is_private_key_encrypted\")" tf_rpc=PlanResourceChange @module=sdk.framework timestamp=2024-10-07T08:45:19.638-1000 2024-10-07T08:45:19.640-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"num_of_partitions\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 timestamp=2024-10-07T08:45:19.638-1000 2024-10-07T08:45:19.641-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination @module=sdk.framework tf_attribute_path="AttributeName(\"config\").AttributeName(\"cloud_provider\")" tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.638-1000 2024-10-07T08:45:19.641-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"config\").AttributeName(\"enable_remote_execution\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination @module=sdk.framework tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 timestamp=2024-10-07T08:45:19.638-1000 2024-10-07T08:45:19.641-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_rpc=PlanResourceChange tf_attribute_path="AttributeName(\"setup_status\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework timestamp=2024-10-07T08:45:19.640-1000
2024-10-07T08:45:19.642-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination tf_rpc=PlanResourceChange tf_attribute_path="AttributeName(\"trust_fingerprints\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran timestamp=2024-10-07T08:45:19.640-10002024-10-07T08:45:19.643-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"run_setup_tests\")" tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_resource_type=fivetran_destination @module=sdk.framework @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.641-1000
2024-10-07T08:45:19.643-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_attribute_path="AttributeName(\"id\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_rpc=PlanResourceChange timestamp=2024-10-07T08:45:19.641-1000 2024-10-07T08:45:19.644-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: marking computed attribute that is null in the config as unknown: tf_attribute_path="AttributeName(\"networking_method\")" tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=a1c98d59-f85e-22f2-24a4-4aeb640390d2 tf_rpc=PlanResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_planresourcechange.go:420 @module=sdk.framework tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:19.642-1000 fivetran_destination.destination["adodd_test"]: Creating... 2024-10-07T08:45:19.647-1000 [INFO] Starting apply for fivetran_destination.destination["adodd_test"] 2024-10-07T08:45:19.648-1000 [DEBUG] fivetran_destination.destination["adodd_test"]: applying the planned Create change fivetran_destination.destination["adodd_test"]: Still creating... [10s elapsed] 2024-10-07T08:45:38.221-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=time_zone_offset tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.222-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_rpc=ApplyResourceChange @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_attribute_path=group_id tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.223-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=region tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.223-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_attribute_path=service tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.224-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_attribute_path=config.user tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df @module=sdk.framework tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.224-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_resource_type=fivetran_destination tf_attribute_path=config.auth tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.225-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=config.database tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination tf_provider_addr=registry.terraform.io/fivetran/fivetran timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.225-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=config.connection_type tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.226-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_attribute_path=config.host tf_provider_addr=registry.terraform.io/fivetran/fivetran @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.226-1000 [DEBUG] State storage remote.State declined to persist a state snapshot 2024-10-07T08:45:38.227-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination @module=sdk.framework tf_attribute_path=config.port tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.227-1000 [ERROR] vertex "fivetran_destination.destination[\"adodd_test\"]" error: Provider produced inconsistent result after apply 2024-10-07T08:45:38.227-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_attribute_path=config.private_key @module=sdk.framework timestamp=2024-10-07T08:45:38.222-1000 2024-10-07T08:45:38.227-1000 [DEBUG] states/remote: state read serial is: 18; serial is: 18 2024-10-07T08:45:38.228-1000 [DEBUG] states/remote: state read lineage is: 99bacefd-d317-4e32-ff6d-c9a1ee981051; lineage is: 99bacefd-d317-4e32-ff6d-c9a1ee981051 fivetran_destination.destination["adodd_test"]: Creating... 2024-10-07T08:45:19.647-1000 [INFO] Starting apply for fivetran_destination.destination["adodd_test"] 2024-10-07T08:45:19.648-1000 [DEBUG] fivetran_destination.destination["adodd_test"]: applying the planned Create change fivetran_destination.destination["adodd_test"]: Still creating... [10s elapsed] 2024-10-07T08:45:38.221-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=time_zone_offset tf_resource_type=fivetran_destination timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.222-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_rpc=ApplyResourceChange @module=sdk.framework tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_attribute_path=group_id tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.223-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=region tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.223-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_attribute_path=service tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.224-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_attribute_path=config.user tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df @module=sdk.framework tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.224-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_resource_type=fivetran_destination tf_attribute_path=config.auth tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.225-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=config.database tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination tf_provider_addr=registry.terraform.io/fivetran/fivetran timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.225-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_resource_type=fivetran_destination @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 @module=sdk.framework tf_attribute_path=config.connection_type tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.226-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: @module=sdk.framework tf_attribute_path=config.host tf_provider_addr=registry.terraform.io/fivetran/fivetran @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.226-1000 [DEBUG] State storage remote.State declined to persist a state snapshot 2024-10-07T08:45:38.227-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination @module=sdk.framework tf_attribute_path=config.port tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 timestamp=2024-10-07T08:45:38.221-1000 2024-10-07T08:45:38.227-1000 [ERROR] vertex "fivetran_destination.destination[\"adodd_test\"]" error: Provider produced inconsistent result after apply 2024-10-07T08:45:38.227-1000 [DEBUG] provider.terraform-provider-fivetran_v1.3.2.exe: Value switched to prior value due to semantic equality logic: tf_provider_addr=registry.terraform.io/fivetran/fivetran tf_req_id=2b22cace-da74-c3c8-1901-87ebc809e4df tf_resource_type=fivetran_destination tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwschemadata/value_semantic_equality.go:87 tf_attribute_path=config.private_key @module=sdk.framework timestamp=2024-10-07T08:45:38.222-1000 2024-10-07T08:45:38.227-1000 [DEBUG] states/remote: state read serial is: 18; serial is: 18 2024-10-07T08:45:38.228-1000 [DEBUG] states/remote: state read lineage is: 99bacefd-d317-4e32-ff6d-c9a1ee981051; lineage is: 99bacefd-d317-4e32-ff6d-c9a1ee981051 max=5" ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to fivetran_destination.destination["adodd_test"], provider │ "provider[\"registry.terraform.io/fivetran/fivetran\"]" produced an unexpected new value: .config.passphrase: inconsistent values for
│ sensitive attribute. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵

Plugin version: 1.3.2

Additional context Add any other context about the problem here.

aarondodd commented 1 month ago

Issue resolved: there is another flag needed: is_private_key_encrypted