Terraform OCI Provider Tells me shape_config is invalid

Hello everyone,

i am currently toying around with the oracle cloud and Terraform (1.0.1).

My issue is, that this resource description:

resource "oci_core_instance" "testserver" {
  availability_domain = data.oci_identity_availability_domain.ad.name
  compartment_id = var.compartment_ocid
  display_name = "testserver"
  shape = "VM.Standard.A1.Flex"
  shape_config {
    memory_in_gbs = 6
    ocpus = 1
  }


  create_vnic_details {
    subnet_id        = oci_core_subnet.publicsubnet.id
    display_name     = "primaryvnic"
    assign_public_ip = true
    hostname_label   = "testserver"
  }

  source_details {
    source_type = "image"
    source_id   = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaa23zlxgcvdgb2zn4ffik6rda4g5daa5wa42svsgp4enljv4ywv6wa"
  }

  metadata = {
    ssh_authorized_keys = var.ssh_public_key
  }
}

Results in this Error:

│ Error: 400-InvalidParameter 
│ Provider version: 4.31.0, released on 2021-06-23.  
│ Service: Core Instance 
│ Error Message: Invalid shape config 
│ OPC request ID: a46f8f2ab30dadffae775c820beb77da/1194153C09B3AE4D7121158B15376C7B/B57FAA66FDB743E4FEA1C315D63A1577 
│ Suggestion: Please update the parameter(s) in the Terraform config as per error message Invalid shape config
│ 
│ 
│   with oci_core_instance.testserver,
│   on main.tf line 80, in resource "oci_core_instance" "testserver":
│   80: resource "oci_core_instance" "testserver" {
│ 

Which i don’t understand, since accounding to this: https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_instance#shape_config it should be valid.

I have tested this in Phoenix and in Frankfurt and it has worked for me.

resource "oci_core_instance" "testserver" {
  availability_domain = "xxxx:EU-FRANKFURT-1-AD-1"
  compartment_id = var.compartment_ocid
  display_name = "testserver"
  shape = "VM.Standard.A1.Flex"
  shape_config {
    memory_in_gbs = 6
    ocpus = 1
  }


  create_vnic_details {
    subnet_id        = "ocid1.subnet.oc1.eu-frankfurt-1.aaaaaaaabj..."
    display_name     = "primaryvnic"
    assign_public_ip = true
    hostname_label   = "testserver"
  }

  source_details {
    source_type = "image"
    source_id   = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaauf3vss4np44dl3vnbzyuwm6cic7hpfwk6dsxpecgorsgkky463hq"
  }
}```

The only thing I can think of is to try different Fault Domains and AD's. I have heard there is some limited A1 resources available at least at launch a few weeks ago. I don't know if that is what is causing the error.