turbot/alicloud

steampipe plugin install alicloudsteampipe plugin install alicloud
On This Page
Get Involved

Table: alicloud_ecs_auto_provisioning_group

Auto Provisioning is a service to quickly deploy an instance cluster that consists of preemptible and pay-as-you-go instances. It supports one-click deployment of instance clusters with specified billing methods, zones, and instance families.

You can use auto provisioning groups to provide stable computing power, alleviate the instability caused by the reclaiming of preemptible instances, and eliminate the need to manually create instances.

Examples

Basic info

select
name,
auto_provisioning_group_id,
state,
status
from
alicloud_ecs_auto_provisioning_group;

Get instance details for a specific group

select
apg.name as auto_provisioning_group_name,
apg.launch_template_id as launch_template_id,
apg.launch_template_version as launch_template_version,
i.instance_type,
i.os_name_en,
i.private_ip_address,
i.public_ip_address,
ins_detail ->> 'InstanceId' as instance_id,
ins_detail ->> 'InstanceType' as instance_type,
ins_detail ->> 'Status' as instance_status,
ins_detail ->> 'NetworkType' as instance_network_type
from
alicloud_ecs_auto_provisioning_group as apg,
jsonb_array_elements(apg.instances) as ins_detail,
alicloud_ecs_instance as i
where
ins_detail ->> 'InstanceId' = i.instance_id
and apg.name = 'my_group';

List inactive groups

select
name,
auto_provisioning_group_id,
status
from
alicloud_ecs_auto_provisioning_group
where
status <> 'active';

.inspect alicloud_ecs_auto_provisioning_group

Alicloud ECS Auto Provisioning Group

NameTypeDescription
account_idtextThe Alicloud Account ID in which the resource is located.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
allocation_strategytextAn unique identifier for the resource.
auto_provisioning_group_idtextAn unique identifier for the resource.
auto_provisioning_group_typetextAn unique identifier for the resource.
creation_timetimestamp without time zoneAn unique identifier for the resource.
excess_capacity_termination_policytextAn unique identifier for the resource.
instancesjsonbAn unique identifier for the resource.
launch_template_configsjsonbAn unique identifier for the resource.
launch_template_idtextAn unique identifier for the resource.
launch_template_versiontextAn unique identifier for the resource.
max_spot_pricedouble precisionAn unique identifier for the resource.
nametextA friendly name for the resource.
regiontextThe Alicloud region in which the resource is located.
spot_optionsjsonbAn unique identifier for the resource.
statetextAn unique identifier for the resource.
statustextAn unique identifier for the resource.
target_capacity_specificationjsonbAn unique identifier for the resource.
terminate_instancesbooleanAn unique identifier for the resource.
terminate_instances_with_expirationbooleanAn unique identifier for the resource.
titletextTitle of the resource.
valid_fromtimestamp without time zoneAn unique identifier for the resource.
valid_untiltimestamp without time zoneAn unique identifier for the resource.