GetInstanceTypes

The alicloud.emr.getInstanceTypes data source provides a collection of ecs instance types available in Alibaba Cloud account when create a emr cluster.

NOTE: Available in 1.59.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.Emr.GetInstanceTypes.InvokeAsync(new AliCloud.Emr.GetInstanceTypesArgs
        {
            ClusterType = "HADOOP",
            DestinationResource = "InstanceType",
            InstanceChargeType = "PostPaid",
            InstanceType = "ecs.g5.2xlarge",
            SupportLocalStorage = false,
            SupportNodeTypes = 
            {
                "MASTER",
                "CORE",
            },
        }));
        this.FirstInstanceType = @default.Apply(@default => @default.Types[0].Id);
    }

    [Output("firstInstanceType")]
    public Output<string> FirstInstanceType { get; set; }
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.emr.get_instance_types(cluster_type="HADOOP",
    destination_resource="InstanceType",
    instance_charge_type="PostPaid",
    instance_type="ecs.g5.2xlarge",
    support_local_storage=False,
    support_node_types=[
        "MASTER",
        "CORE",
    ])
pulumi.export("firstInstanceType", default.types[0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultInstanceTypes = pulumi.output(alicloud.emr.getInstanceTypes({
    clusterType: "HADOOP",
    destinationResource: "InstanceType",
    instanceChargeType: "PostPaid",
    instanceType: "ecs.g5.2xlarge",
    supportLocalStorage: false,
    supportNodeTypes: [
        "MASTER",
        "CORE",
    ],
}, { async: true }));

export const firstInstanceType = defaultInstanceTypes.types[0].id;

Using GetInstanceTypes

function getInstanceTypes(args: GetInstanceTypesArgs, opts?: InvokeOptions): Promise<GetInstanceTypesResult>
function  get_instance_types(cluster_type=None, destination_resource=None, instance_charge_type=None, instance_type=None, output_file=None, support_local_storage=None, support_node_types=None, zone_id=None, opts=None)
func GetInstanceTypes(ctx *Context, args *GetInstanceTypesArgs, opts ...InvokeOption) (*GetInstanceTypesResult, error)
public static class GetInstanceTypes {
    public static Task<GetInstanceTypesResult> InvokeAsync(GetInstanceTypesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ClusterType string

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

DestinationResource string

The destination resource of emr cluster instance

InstanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

InstanceType string

Filter the specific ecs instance type to create emr cluster.

OutputFile string
SupportLocalStorage bool

Whether the current storage disk is local or not.

SupportNodeTypes List<string>

The specific supported node type list. Possible values may be any one or combination of these: [“MASTER”, “CORE”, “TASK”, “GATEWAY”]

ZoneId string

The supported resources of specific zoneId.

ClusterType string

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

DestinationResource string

The destination resource of emr cluster instance

InstanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

InstanceType string

Filter the specific ecs instance type to create emr cluster.

OutputFile string
SupportLocalStorage bool

Whether the current storage disk is local or not.

SupportNodeTypes []string

The specific supported node type list. Possible values may be any one or combination of these: [“MASTER”, “CORE”, “TASK”, “GATEWAY”]

ZoneId string

The supported resources of specific zoneId.

clusterType string

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

destinationResource string

The destination resource of emr cluster instance

instanceChargeType string

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

instanceType string

Filter the specific ecs instance type to create emr cluster.

outputFile string
supportLocalStorage boolean

Whether the current storage disk is local or not.

supportNodeTypes string[]

The specific supported node type list. Possible values may be any one or combination of these: [“MASTER”, “CORE”, “TASK”, “GATEWAY”]

zoneId string

The supported resources of specific zoneId.

cluster_type str

The cluster type of the emr cluster instance. Possible values: HADOOP, KAFKA, ZOOKEEPER, DRUID.

destination_resource str

The destination resource of emr cluster instance

instance_charge_type str

Filter the results by charge type. Valid values: PrePaid and PostPaid. Default to PostPaid.

instance_type str

Filter the specific ecs instance type to create emr cluster.

output_file str
support_local_storage bool

Whether the current storage disk is local or not.

support_node_types List[str]

The specific supported node type list. Possible values may be any one or combination of these: [“MASTER”, “CORE”, “TASK”, “GATEWAY”]

zone_id str

The supported resources of specific zoneId.

GetInstanceTypes Result

The following output properties are available:

ClusterType string
DestinationResource string
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of emr instance types IDs.

InstanceChargeType string
Types List<Pulumi.AliCloud.Emr.Outputs.GetInstanceTypesType>

A list of emr instance types. Each element contains the following attributes:

InstanceType string
OutputFile string
SupportLocalStorage bool
SupportNodeTypes List<string>
ZoneId string

The available zone id in Alibaba Cloud account

ClusterType string
DestinationResource string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of emr instance types IDs.

InstanceChargeType string
Types []GetInstanceTypesType

A list of emr instance types. Each element contains the following attributes:

InstanceType string
OutputFile string
SupportLocalStorage bool
SupportNodeTypes []string
ZoneId string

The available zone id in Alibaba Cloud account

clusterType string
destinationResource string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of emr instance types IDs.

instanceChargeType string
types GetInstanceTypesType[]

A list of emr instance types. Each element contains the following attributes:

instanceType string
outputFile string
supportLocalStorage boolean
supportNodeTypes string[]
zoneId string

The available zone id in Alibaba Cloud account

cluster_type str
destination_resource str
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of emr instance types IDs.

instance_charge_type str
types List[GetInstanceTypesType]

A list of emr instance types. Each element contains the following attributes:

instance_type str
output_file str
support_local_storage bool
support_node_types List[str]
zone_id str

The available zone id in Alibaba Cloud account

Supporting Types

GetInstanceTypesType

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

The ID of the instance type.

LocalStorageCapacity int

Local capacity of the applied ecs instance for emr cluster. Unit: GB.

ZoneId string

The supported resources of specific zoneId.

Id string

The ID of the instance type.

LocalStorageCapacity int

Local capacity of the applied ecs instance for emr cluster. Unit: GB.

ZoneId string

The supported resources of specific zoneId.

id string

The ID of the instance type.

localStorageCapacity number

Local capacity of the applied ecs instance for emr cluster. Unit: GB.

zoneId string

The supported resources of specific zoneId.

id str

The ID of the instance type.

localStorageCapacity float

Local capacity of the applied ecs instance for emr cluster. Unit: GB.

zone_id str

The supported resources of specific zoneId.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.