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

Why I have to reapply the same Terraform to see my custom theme is applied #249

Open kasir-barati opened 11 months ago

kasir-barati commented 11 months ago

I have a fusionauth instance which I am configuring it via terraform, here is the link to the reproducible repo: https://github.com/kasir-barati/docker/tree/docker-compose/docker-compose-files/fusionauth-terraform

and here is the terraform init, plan, and apply log

Any idea?

kasir-barati commented 11 months ago

In the first terraform apply -auto-approve it can read and shows the stylesheet and handlers and everything that I specified for the custom theme in the terminal but when I login to the fusionauth instance with the super admin credentials and go the the Themes page and click on edit Custom Theme it shows that stylesheet is empty even though terraform plan and apply was saying that they using the files I passed but in the second terraform apply, terraform logs that it has changed the stylesheet and all the ftl files for the custom theme.

So I think something is wrong with the fusionauth_theme resource TBF. BTW I will try to talk to the fusionauth API directly to confirm that if I create a theme like that it is gonna work on the first try