Created
August 22, 2024 21:35
-
-
Save BobyMCbobs/148ef93dd7b0cc2f9f089cafa95c78ba to your computer and use it in GitHub Desktop.
terraform-oci-dynamic-group-resource-creation-failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oci_identity_dynamic_group.instance_dynamic_group: Creating... | |
2024-08-23T09:16:37.421+1200 [INFO] Starting apply for oci_identity_dynamic_group.instance_dynamic_group | |
2024-08-23T09:16:37.422+1200 [DEBUG] oci_identity_dynamic_group.instance_dynamic_group: applying the planned Create change | |
2024-08-23T09:16:37.422+1200 [INFO] provider.terraform-provider-oci_v6.7.0: 2024/08/23 09:16:37 [DEBUG] setting computed for "defined_tags" from ComputedKeys: timestamp="2024-08-23T09:16:37.422+1200" | |
2024-08-23T09:16:37.422+1200 [INFO] provider.terraform-provider-oci_v6.7.0: 2024/08/23 09:16:37 [DEBUG] setting computed for "defined_tags" from ComputedKeys: timestamp="2024-08-23T09:16:37.422+1200" | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422666 eventual_consistency.go:332: (pid=91616, gid=39) EcContext.GetEndOfWindow returns <nil> | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422686 asm_arm64.s:1197: Retry policy to use: {MaximumNumberAttempts=0, MinSleepBetween=0, MaxSleepBetween=0, ExponentialBackoffBase=0, NonEventuallyConsistentPolicy=<nil>} | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422690 asm_arm64.s:1197: operation attempt #1 | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422722 http.go:725: Marshaling to Request: CreateDynamicGroupRequest | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422899 http.go:647: Marshaling to body from field:CreateDynamicGroupDetails | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422972 http.go:167: Adjusting tag: mandatory is false and json tag is valid on field: FreeformTags | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422979 http.go:167: Adjusting tag: mandatory is false and json tag is valid on field: DefinedTags | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422985 http.go:647: Marshaled body is: {"compartmentId":"ocid1.tenancy.oc1..aaaaaaaalnpeq6xok4okj5vknc2pzancima3g5bwvk3kk2jgwhgycacrie3q","description":"Instance access","freeformTags":{"TalosCluster":"cncfoci"},"matchingRule":"ALL {instance.compartment.id = 'ocid1.compartment.oc1..aaaaaaaac5nbffbezgxubg53nem624gylmjihujtw4ypafwoxp3mvrmcu5ba'}\n","name":"cncfoci-oci-ccm"} | |
2024-08-23T09:16:37.422+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422992 http.go:639: Marshaling to header from field: OpcRetry | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.422998 http.go:639: Marshaling to header from field: OpcRequestId | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.423003 http.go:520: add request id for header: opc-request-id, with value: 185e0b76c2f406f5b5c44d7f5f20b95e | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.423007 http.go:698: RequestMetadata does not contain contributes tag. Skipping. | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.423011 client.go:617: Attempting to call downstream service | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.424283 client.go:696: Dump Request POST /20160918/dynamicGroups HTTP/1.1 | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Host: identity.us-sanjose-1.oci.oraclecloud.com | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: User-Agent: Oracle-GoSDK/65.71.1 (go/go1.21.8; darwin/arm64; terraform/2.33.0; terraform-cli/1.8.1) Oracle-TerraformProvider/6.7.0 | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Content-Length: 335 | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Accept: */* | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Authorization: [REDACTED] | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.423003 http.go:520: add request id for header: opc-request-id | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.423007 http.go:698: RequestMetadata does not contain contribu | |
2024-08-23T09:16:37.423+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.423011 client.go:617: Attempting to call downstream service | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:37.424283 client.go:696: Dump Request POST /20160918/dynamicGrou | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Host: identity.us-sanjose-1.oci.oraclecloud.com | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: User-Agent: Oracle-GoSDK/65.71.1 (go/go1.21.8; darwin/arm64; terraform/2.33.0; terrafor | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Content-Length: 335 | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Accept: */* | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Authorization: Signature version="1",headers="date (request-target) host content-length | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Content-Type: application/json | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Date: Thu, 22 Aug 2024 21:16:37 GMT | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Opc-Client-Info: Oracle-GoSDK/65.71.1 | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Opc-Client-Retries: true | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Opc-Request-Id: 185e0b76c2f406f5b5c44d7f5f20b95e | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Opc-Retry-Token: [REDACTED] | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: X-Content-Sha256: BiN1O3uX3QE5aYtq3ivsy7t/k6J3FgU3HHV/ndZdlz4= | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Accept-Encoding: gzip | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0 | |
2024-08-23T09:16:37.424+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: {"compartmentId":"ocid1.tenancy.oc1..aaaaaaaalnpeq6xok4okj5vknc2pzancima3g5bwvk3kk2jgwh | |
2024-08-23T09:16:38.250+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: INFO 2024/08/23 09:16:38.250398 client.go:465: Dump Response HTTP/1.1 404 Not Found | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Content-Length: 77 | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Cache-Control: no-cache, no-store, must-revalidate | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Content-Type: application/json | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Date: Thu, 22 Aug 2024 21:16:38 GMT | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Opc-Request-Id: 185e0b76c2f406f5b5c44d7f5f20b95e/524B620B642C2C3ABE65AC7AF71771BB/4F271 | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Pragma: no-cache | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: Strict-Transport-Security: max-age=31536000; includeSubDomains; | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: X-Content-Type-Options: nosniff | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0 | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: { | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: "code" : "NotAuthorizedOrNotFound", | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: "message" : "POST request failed" | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: } | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:38.251014 EC.ShouldRetryOperation, no EC or in the past, returni | |
2024-08-23T09:16:38.251+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: DEBUG 2024/08/23 09:16:38.251026 EC.ShouldRetryOperation, no EC or in the past, returni | |
2024-08-23T09:16:38.251+1200 [ERROR] provider.terraform-provider-oci_v6.7.0: Response contains error diagnostic: diagnostic_severity=ERROR tf_proto_version=5.4 tf_r | |
diagnostic_summary= | |
| 404-NotAuthorizedOrNotFound, POST request failed | |
| Suggestion: Either the resource has been deleted or service Identity Dynamic Group need policy to access this resource. Policy reference: https://docs.oracle.co | |
| Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_dynamic_group | |
| API Reference: https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/CreateDynamicGroup | |
| Request Target: POST https://identity.us-sanjose-1.oci.oraclecloud.com/20160918/dynamicGroups | |
| Provider version: 6.7.0, released on 2024-08-17. | |
| Service: Identity Dynamic Group | |
| Operation Name: CreateDynamicGroup | |
| OPC request ID: 185e0b76c2f406f5b5c44d7f5f20b95e/524B620B642C2C3ABE65AC7AF71771BB/4F27175F80011564338E0DF901A22231 | |
tf_provider_addr=provider tf_req_id=98e7f01b-ca1f-7cf2-18f8-170885df6e7b @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnos | |
2024-08-23T09:16:38.253+1200 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot | |
2024-08-23T09:16:38.253+1200 [ERROR] vertex "oci_identity_dynamic_group.instance_dynamic_group" error: 404-NotAuthorizedOrNotFound, POST request failed | |
Suggestion: Either the resource has been deleted or service Identity Dynamic Group need policy to access this resource. Policy reference: https://docs.oracle.com/en | |
Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_dynamic_group | |
API Reference: https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/CreateDynamicGroup | |
Request Target: POST https://identity.us-sanjose-1.oci.oraclecloud.com/20160918/dynamicGroups | |
Provider version: 6.7.0, released on 2024-08-17. | |
Service: Identity Dynamic Group | |
Operation Name: CreateDynamicGroup | |
OPC request ID: 185e0b76c2f406f5b5c44d7f5f20b95e/524B620B642C2C3ABE65AC7AF71771BB/4F27175F80011564338E0DF901A22231 | |
╷ | |
│ Error: 404-NotAuthorizedOrNotFound, POST request failed | |
│ Suggestion: Either the resource has been deleted or service Identity Dynamic Group need policy to access this resource. Policy reference: https://docs.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm | |
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_dynamic_group | |
│ API Reference: https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/CreateDynamicGroup | |
│ Request Target: POST https://identity.us-sanjose-1.oci.oraclecloud.com/20160918/dynamicGroups | |
│ Provider version: 6.7.0, released on 2024-08-17. | |
│ Service: Identity Dynamic Group | |
│ Operation Name: CreateDynamicGroup | |
│ OPC request ID: 185e0b76c2f406f5b5c44d7f5f20b95e/524B620B642C2C3ABE65AC7AF71771BB/4F27175F80011564338E0DF901A22231 | |
│ | |
│ | |
│ with oci_identity_dynamic_group.instance_dynamic_group, | |
│ on iam.tf line 1, in resource "oci_identity_dynamic_group" "instance_dynamic_group": | |
│ 1: resource "oci_identity_dynamic_group" "instance_dynamic_group" { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment