Skip to main content

hosts

Retrieves a list of hosts in a region

Overview

Namehosts
TypeResource
Descriptionhosts
Idawscc.ec2.hosts

Fields

NameDatatypeDescription
host_idstringID of the host created.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
host_id
FROM awscc.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