oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
759 stars 681 forks source link

Failure creating Dynamic Group #2180

Open BobyMCbobs opened 3 months ago

BobyMCbobs commented 3 months ago

Community Note

Terraform Version and Provider Version

OpenTofu v1.8.1
on darwin_arm64
+ provider registry.opentofu.org/hashicorp/random v3.6.2
+ provider registry.opentofu.org/oracle/oci v6.7.0
+ provider registry.opentofu.org/siderolabs/talos v0.6.0-alpha.1

Affected Resource(s)

oci_identity_dynamic_group

Terraform Configuration Files

resource "oci_identity_dynamic_group" "instance_dynamic_group" {
  #Required
  name           = "${var.cluster_name}-oci-ccm"
  compartment_id = var.tenancy_ocid
  description    = "Instance access"
  matching_rule  = <<EOF
ALL {instance.compartment.id = '${var.compartment_ocid}'}
EOF

  #Optional
  freeform_tags = local.common_labels
}

Debug Output

https://gist.github.com/BobyMCbobs/148ef93dd7b0cc2f9f089cafa95c78ba

Expected Behavior

a dynamic group resource is created via Terraform

Actual Behavior

there is a 404 response

Steps to Reproduce

  1. create resource like in Affected Resource(s)

  2. terraform apply

Important Factoids

not that I am aware of

References

https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_dynamic_group

Notes

creating this public issue for visibility. Corresponding with some folks on behalf of CNCF for a project