My Oracle Support Banner

[PCA 3.0.x] Terraform Error: 501-NotSupportedError, agentConfig (Doc ID 2960411.1)

Last updated on SEPTEMBER 06, 2023

Applies to:

Private Cloud Appliance X9-2 - Version Not Applicable to Not Applicable [Release NA]
Information in this document applies to any platform.

Symptoms

The following Terraform resource definition fails with "Error: 501-NotSupportedError, agentConfig"

resource "oci_core_instance" "ol8_instance" {
      # Required
      availability_domain = "ad1"
      compartment_id = var.compartment_id

     agent_config {
     is_management_disabled = true
     is_monitoring_disabled = true
     }

     shape = "VM.PCAStandard1.1"
     source_details {
     source_id ="ocid1.image.AK00905695.x9pca1.5oc1d9h93x8plv894o2try0naai3nmsai7l0c5zx2e7i2oe6j7pm4pzv16df"
     source_type = "image"
     }

     # Optional
     display_name = "mmvm1"
     create_vnic_details {
         assign_public_ip = true
         subnet_id = oci_core_subnet.test_subnet.id
     }
     metadata = {
          ssh_authorized_keys = "xxxxxxxxxxxxxxxxxxxxn"
     }
     preserve_boot_volume = false
}

data "oci_core_images" "Okit_I_1687517532899Images" {
     compartment_id = var.compartment_id
     operating_system = "OracleLinux"
     operating_system_version = "8"
     shape = "VM.PCAStandard1.1"
}

Note that the "agent_config" block used to work before against PCA 3.0 and is not enabling the agents.

Changes

Upgraded the Terraform oci provider.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.