Open faelau opened 1 week ago
I'll have to check, most likely the value is sensitive, and you are unable to retrieve it unless you created it with terraform. I'll need to add an exception for this
Seeing this error in numerous places including in notification template, /api/v2/notification_templates/ returns "token": "$encrypted$" which seems to get into the state file so there is always a diff, the secret value is created in tf as well.
-/+ resource "awx_notification_template" "slack_notifications" {
~ id = 14 -> (known after apply)
name = "slack notification"
~ notification_configuration = jsonencode(
~ {
~ token = "$encrypted$" -> "secretpassowrdhere"
# (1 unchanged attribute hidden)
}
)
# (4 unchanged attributes hidden)
}
If you create a object which values are stored in encrypted format, Terraform force to recreate the property because Terraform thinks it has changed:
Encrypted values should only be changed when the value changes in the manifest.
Other encrypted values (e.g. LDAP bind password) are also affected.