-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Affected Resource(s)
resource "oci_identity_policy" "cluster_ipv6" {
provider = oci.home
count = var.enable_ipv6 && var.create_iam_resources ? 1 : 0
compartment_id = var.network_compartment_id
description = format("Policies for OKE Terraform state %v", var.state_id)
name = var.policy_name
statements = [format("Allow any-user to use ipv6s in compartment %s where all { request.principal.id = '%s' }", var.network_compartment_id, var.cluster_id )]
defined_tags = local.defined_tags
freeform_tags = local.freeform_tags
lifecycle {
ignore_changes = [defined_tags, freeform_tags]
}
}
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform plan
│ Error: Error in function call
│
│ on modules/iam/policy.tf line 40, in resource "oci_identity_policy" "cluster_ipv6":
│ 40: statements = [format("Allow any-user to use ipv6s in compartment %s where all { request.principal.id = '%s' }", var.network_compartment_id, var.cluster_id )]
│ ├────────────────
│ │ while calling format(format, args...)
│ │ var.cluster_id is null
│ │ var.network_compartment_id is null
│
│ Call to function "format" failed: unsupported value for "%s" at 43: null value cannot be formatted.```
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working