Skip to main content

hosts

Retrieves a list of hosts in a region

Overview

Namehosts
TypeResource
DescriptionResource Type definition for AWS::EC2::Host
Idaws.ec2.hosts

Fields

NameDatatypeDescription
host_idstringID of the host created.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTdata__DesiredState, region
list_resourceSELECTregion

SELECT Example

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

Permissions

To operate on the hosts resource, the following permissions are required:

Create

ec2:AllocateHosts,
ec2:DescribeHosts

List

ec2:DescribeHosts