hosts
Retrieves a list of hosts
in a region
Overview
Name | hosts |
Type | Resource |
Description | Resource Type definition for AWS::EC2::Host |
Id | aws.ec2.hosts |
Fields
Name | Datatype | Description |
---|---|---|
host_id | string | ID of the host created. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | data__DesiredState, region |
list_resource | SELECT | region |
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