» Data Source: oci_core_shapes

This data source provides the list of Shapes in Oracle Cloud Infrastructure Core service.

Lists the shapes that can be used to launch an instance within the specified compartment. You can filter the list by compatibility with a specific image.

» Example Usage

data "oci_core_shapes" "test_shapes" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    availability_domain = "${var.shape_availability_domain}"
    image_id = "${oci_core_image.test_image.id}"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • shapes - The list of shapes.

» Shape Reference

The following attributes are exported:

  • name - The name of the shape. You can enumerate all available shapes by calling ListShapes.