Skip to content

Doesn't work on Oracle Cloud #2

@texjoachim

Description

@texjoachim

I tried to deploy to Oracle Cloud, but it failed. Here are the logs:

Getting providers from registry and/or custom terraform providers

Initializing modules...

Initializing provider plugins...

- Finding hashicorp/oci versions matching ">= 4.0.0"...

- Finding latest version of hashicorp/template...

- Finding oracle/oci versions matching ">= 4.67.3"...

- Installing hashicorp/oci v6.9.0...

- Installed hashicorp/oci v6.9.0 (unauthenticated)

- Installing hashicorp/template v2.2.0...

- Installed hashicorp/template v2.2.0 (signed by HashiCorp)

- Installing oracle/oci v6.9.0...

- Installed oracle/oci v6.9.0 (signed by a HashiCorp partner, key ID 1533A49284137CEB)

Partner and community providers are signed by their developers.

If you'd like to know more about provider signing, you can read about it here:

https://www.terraform.io/docs/cli/plugins/signing.html

Terraform has created a lock file .terraform.lock.hcl to record the provider

selections it made above. Include this file in your version control repository

so that Terraform can guarantee to make the same selections by default when

you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see

any changes that are required for your infrastructure. All Terraform commands

should now work.

If you ever set or change modules or backend configuration for Terraform,

rerun this command to reinitialize your working directory. If you forget, other

commands will detect it and remind you to do so if necessary.

Error: Invalid index

  on .terraform/modules/vsc_instance/main.tf line 74, in resource "oci_core_instance" "instance" 

  74:     memory_in_gbs            =local.shape_is_flex==true&&var.instance_flex_memory_in_gbs!=null?var.instance_flex_memory_in_gbs  local.shapes_config[var.shape]["memory_in_gbs"]

    ├────────────────

    │ local.shapes_config is object with 29 attributes

    │ var.shape is "VM.Standard.E2.1.Micro"

The given key does not identify an element in this collection value.

Error: Invalid index

  on .terraform/modules/vsc_instance/main.tf line 75, in resource "oci_core_instance" "instance" 

  75:     ocpus                    =local.shape_is_flex==true&&var.instance_flex_ocpus!=null?var.instance_flex_ocpus  local.shapes_config[var.shape]["ocpus"]

    ├────────────────

    │ local.shapes_config is object with 29 attributes

    │ var.shape is "VM.Standard.E2.1.Micro"

The given key does not identify an element in this collection value. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions