Using auth0_branding resource without a font block, when running a terraform plan after a successful resource creation, I always get this:
# module.auth0.auth0_branding.hedera will be updated in-place
~ resource "auth0_branding" "hedera" {
id = "terraform-20211111072023324000000001"
# (1 unchanged attribute hidden)
- font {}
# (1 unchanged block hidden)
}
The point being that it seems to want to remove the font block. After a consecutive apply then next plan will still want to do this change.
I tried to use an empty font {} block as a workaround, but that doesnt' cut it. Even though it works when running plan (no changes), it will fail when there are any other changes to branding. Here's an example output from apply when trying with an empty font block:
╷
│ Error: 400 Bad Request: Payload validation error: 'Too few properties defined (0), minimum 1' on property font (Custom font settings).
│
│ with module.auth0.auth0_branding.hedera,
│ on ../../modules/auth0/auth0.tf line 77, in resource "auth0_branding" "hedera":
│ 77: resource "auth0_branding" "hedera" {
│
╵
In plan, it shouldn't detect a change when missing the font block.
When applying with an empty font block, it should result to the similar state as without the font block.
Actual Behavior
Change always detected without a font block.
Fails to apply with empty font block.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Using
auth0_branding
resource without afont
block, when running aterraform plan
after a successful resource creation, I always get this:The point being that it seems to want to remove the
font
block. After a consecutiveapply
then next plan will still want to do this change.I tried to use an empty
font {}
block as a workaround, but that doesnt' cut it. Even though it works when runningplan
(no changes), it will fail when there are any other changes to branding. Here's an example output fromapply
when trying with an emptyfont
block:Terraform Version
Affected Resource(s)
auth0_branding
Terraform Configuration Files
Expected Behavior
In plan, it shouldn't detect a change when missing the font block. When applying with an empty font block, it should result to the similar state as without the font block.
Actual Behavior
Change always detected without a font block. Fails to apply with empty font block.
Community Note