IAmStoxe/oracle-free-tier-wirehole

Error in variable "instance_image_ocid"

Opened this issue · 4 comments

Script throws an error :

Error: Service error:NotAuthorizedOrNotFound. image oci1.image.oc1.ap-mumbai-1.aaaaaaaakonst4ow5vbxuk4tvvko3fuhhk4lpupkku7bfthll2axhd7kox4a not found. http status code: 404.

  on main.tf line 105, in resource "oci_core_instance" "wirehole_instance":
 105: resource "oci_core_instance" "wirehole_instance" {

In variables.tf:
Seems like all images have wrong OCIDs.

In my case the wirehole_instance doesn't seem to be successfully created... i get to still creating... 2m elapsed and it just fails:

oci_core_instance.wirehole_instance: Still creating... [2m0s elapsed]

Error: Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found.. http status code: 404. Opc request id: 88625b2c6424bc6365f288ecdd169b37/F77B5964B62042F3C91E89484FA17F33/A54E61BF5C1453749A8CB3CB72669089

  on main.tf line 105, in resource "oci_core_instance" "wirehole_instance":
 105: resource "oci_core_instance" "wirehole_instance" {

I resolved it! for us-phoenix-1 the always free domain is #3. so you go into variables and set the availability domain number to 3 and it will provision properly.

Similar but different... currently where I am stuck:
oci_core_instance.wirehole_instance: Creating...

│ Error: 404-NotAuthorizedOrNotFound
│ Provider version: 4.30.0, released on 2021-06-09.
│ Service: Core Instance
│ Error Message: shape VM.Standard.E2.1.Micro not found
│ OPC request ID: 9e0a510ad3ebf6fb50a25748e3f05bf2/6BE62F2C2ACBCA05474188DE055559F1/EFFCC902BD7ABAF2657B1A1F8A45A89B
│ Suggestion: Either the resource has been deleted or service Core Instance need policy to access this resource. Policy reference: https://docs.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm


│ with oci_core_instance.wirehole_instance,
│ on main.tf line 105, in resource "oci_core_instance" "wirehole_instance":
│ 105: resource "oci_core_instance" "wirehole_instance" {

I figured something like @ThatsRicci said was going to me my solution but my center appear to be aligned with the default. I have yet to crack this code...... seems I can manually create and despite renaming and there being some dates around this instance being dead, It seems like it is all still valid per the docs...

I had to change the availability domain number to 2 to make it work on us-phoenix-1.

This fixed the issue

│ Error: 404-NotAuthorizedOrNotFound
│ Provider version: 4.30.0, released on 2021-06-09.
│ Service: Core Instance
│ Error Message: shape VM.Standard.E2.1.Micro not found