You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show no changes on later plans/applies when the metadata { restricted_roles = [] } block is omitted during creation of the resources.
Not cause the plugin to crash when the block metadata { restricted_roles = [] } is included in the resource during initial creation of the resources.
Actual Behavior
When metadata { restricted_roles = [] } is included in the resource during the initial apply to create the resources, the plugin crashes. If this block is not included in the resource, the resource shows a necessary change on every sequential apply to remove this block from the resource
Steps to Reproduce
Reproduce the plugin crash:
Include metadata { restricted_roles = [] } in the resource and run terraform apply to create the resource.
Reproduce the "changes are always necessary" problem:
Omit metadata { restricted_roles = [] } from the resource and run terraform apply to create the resource. After the resource is created, run terraform apply again. The plan will show that the resource must be updated in place with:
- metadata {
- restricted_roles = [] -> null
}
The text was updated successfully, but these errors were encountered:
Terraform Version
Terraform v1.2.3 on darwin_arm64
provider registry.terraform.io/datadog/datadog v3.12.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Debug logs gist
Panic Output
panic gist
Expected Behavior
The resource should either:
metadata { restricted_roles = [] }
block is omitted during creation of the resources.metadata { restricted_roles = [] }
is included in the resource during initial creation of the resources.Actual Behavior
When
metadata { restricted_roles = [] }
is included in the resource during the initial apply to create the resources, the plugin crashes. If this block is not included in the resource, the resource shows a necessary change on every sequential apply to remove this block from the resourceSteps to Reproduce
Reproduce the plugin crash:
metadata { restricted_roles = [] }
in the resource and runterraform apply
to create the resource.Reproduce the "changes are always necessary" problem:
metadata { restricted_roles = [] }
from the resource and runterraform apply
to create the resource. After the resource is created, runterraform apply
again. The plan will show that the resource must be updated in place with:The text was updated successfully, but these errors were encountered: