Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in variable "instance_image_ocid" #1

Open
itskagee opened this issue Sep 11, 2020 · 4 comments
Open

Error in variable "instance_image_ocid" #1

itskagee opened this issue Sep 11, 2020 · 4 comments

Comments

@itskagee
Copy link

itskagee commented Sep 11, 2020

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.

@ThatsRicci
Copy link

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" {

@ThatsRicci
Copy link

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.

@IGitYou
Copy link

IGitYou commented Jun 18, 2021

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...

@danielg88
Copy link

danielg88 commented Jan 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants