FusionAuth / terraform-provider-fusionauth

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

login_intent_time_to_live_in_seconds parameter not applied properly #299

Open sachams opened 1 week ago

sachams commented 1 week ago

I updated the Terraform provider from 0.1.108 to 0.1.111 and noticed that this parameter had become required. After adding in what looks to be the default value and running terraform apply, the next time I run terraform apply, it sets it again.

resource "fusionauth_tenant" "Default" {
...
  external_identifier_configuration {
    login_intent_time_to_live_in_seconds               = 1800
   ...
  }
  ...
}

When running terraform apply the change is successfully applied, but then running terraform apply again, I get:

Terraform will perform the following actions:

  # module.fusionauth.fusionauth_tenant.Default will be updated in-place
  ~ resource "fusionauth_tenant" "Default" {
        id                                 = "94d729cd-0062-cb08-a9b1-0b49b96c74b1"
        name                               = "Default"
        # (8 unchanged attributes hidden)

      ~ external_identifier_configuration {
          ~ login_intent_time_to_live_in_seconds                 = 0 -> 1800
            # (15 unchanged attributes hidden)

            # (9 unchanged blocks hidden)
        }

        # (15 unchanged blocks hidden)
    }

I am running FusionAuth docker fusionauth/fusionauth-app:1.51.2

sachams commented 2 days ago

Hi FusionAuth team, any thoughts on the issue above?