Skip to main content

hosts_list_only

Lists hosts in a region or regions, for all properties use hosts

Overview

Namehosts_list_only
TypeResource
DescriptionResource Type definition for AWS::EC2::Host
Idaws.ec2.hosts_list_only

Fields

NameDatatypeDescription
host_idstringID of the host created.
auto_placementstringIndicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
availability_zonestringThe Availability Zone in which to allocate the Dedicated Host.
host_recoverystringIndicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
instance_typestringSpecifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
instance_familystringSpecifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family.
outpost_arnstringThe Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.
host_maintenancestringAutomatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
asset_idstringThe ID of the Outpost hardware asset.
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all hosts in a region.

SELECT
region,
host_id
FROM aws.ec2.hosts_list_only
WHERE region = 'us-east-1';

Permissions

For permissions required to operate on the hosts_list_only resource, see hosts