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
Getting the following error when deploying using the Architecture Center link.
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] Initializing provider plugins...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Finding hashicorp/oci versions matching "4.34.0"...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Finding latest version of hashicorp/null...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Finding latest version of hashicorp/tls...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Finding latest version of hashicorp/random...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Finding latest version of hashicorp/template...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/tls v2.0.1...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/tls v2.0.1 (unauthenticated)
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/random v2.3.0...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/random v2.3.0 (unauthenticated)
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/template v2.1.2...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/template v2.1.2 (unauthenticated)
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/oci v4.34.0...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/oci v4.34.0 (unauthenticated)
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/null v2.1.2...
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/null v2.1.2 (unauthenticated)
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] Terraform has created a lock file .terraform.lock.hcl to record the provider
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] selections it made above. Include this file in your version control repository
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] so that Terraform can guarantee to make the same selections by default when
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] you run "terraform init" in the future.
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] Terraform has been successfully initialized!
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] You may now begin working with Terraform. Try running "terraform plan" to see
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] any changes that are required for your infrastructure. All Terraform commands
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] should now work.
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] If you ever set or change modules or backend configuration for Terraform,
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] rerun this command to reinitialize your working directory. If you forget, other
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] commands will detect it and remind you to do so if necessary.
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] 2022/04/26 05:06:22 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] Use TF_LOG=TRACE to see Terraform's internal logs.
2022/04/26 05:06:22[TERRAFORM_CONSOLE] [INFO] ----
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO] Error: Attempt to index null value
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO] on provider.tf line 28, in provider "oci":
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO] 28: region = data.oci_identity_region_subscriptions.home_region_subscriptions.region_subscriptions[0].region_name
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO] |----------------
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO] | data.oci_identity_region_subscriptions.home_region_subscriptions.region_subscriptions is null
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO] This value is null, so it does not have any indices.
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO]
2022/04/26 05:06:27[TERRAFORM_CONSOLE] [INFO]
The text was updated successfully, but these errors were encountered:
@OguzPastirmaci looks like an IAM issue. I am not able to reproduce it at will, but could the customer try to add an OCI user to the group with the IAM policy Allow group user_group to inspect all-resources in tenancy? Lack of visibility of region subscriptions means customer account has minimal privileges, and it is possible the stack will not be deployed successfully.
The customer is finding this issue only in ORM. It doesn't happen to the customer in a local Terraform CLI setup.
That suggests it's not about the policy proposed above, but rather about the ORM pre-authentication. @lfeldman and I are unable to replicate this error, we don't get it in ORM nor in local CLI. Not sure yet what may be different in the customer tenancy. Reported internally to Oracle Terraform support.
Getting the following error when deploying using the Architecture Center link.
The text was updated successfully, but these errors were encountered: