FusionAuth / terraform-provider-fusionauth

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

How to use source_theme_id correctly? #172

Open lyricnz opened 1 year ago

lyricnz commented 1 year ago

What's the correct way to make a derived theme? (ie: start by copying another, then make some changes)

If I do

resource "fusionauth_theme" "example_theme_custom" {
  name            = "my custom theme"
  source_theme_id = "75a068fd-e94b-451a-9aeb-3ddb9a3b5987" # default theme magic number: https://github.com/FusionAuth/fusionauth-issues/issues/459
  helpers = file("${path.module}/theme_templates/helpers.ftl")
}

The "helpers" page of the theme settings isn't used, only the source theme. If I remove the source_theme_id afterwards, and reapply the TF, then the helpers setting is changed.

Shouldn't the explicit settings override the values from the source-theme?

tobilen commented 1 year ago

I am experiencing the same problem. This seems to be an issue with the theme api endpoint, not the tf provider though.