Skip to main content

instances

Creates, updates, deletes, gets or lists an instances resource.

Overview

Nameinstances
TypeResource
Idaws.emr.instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ebs_volumesarrayThe list of Amazon EBS volumes that are attached to this instance.
ec_2_instance_idstringThe unique identifier of the instance in Amazon EC2.
idstringThe unique identifier for the instance in Amazon EMR.
instance_fleet_idstringThe unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
instance_group_idstringThe identifier of the instance group to which this instance belongs.
instance_typestringThe Amazon EC2 instance type, for example m3.xlarge. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*</code>)
marketstringThe instance purchasing option. Valid values are ON_DEMAND or SPOT. (ON_DEMAND, SPOT)
private_dns_namestringThe private DNS name of the instance.
private_ip_addressstringThe private IP address of the instance.
public_dns_namestringThe public DNS name of the instance.
public_ip_addressstringThe public IP address of the instance.
statusobjectThe current status of the instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_instancesselectregionProvides information for all active Amazon EC2 instances and Amazon EC2 instances terminated in the last 30 days, up to a maximum of 2,000. Amazon EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides information for all active Amazon EC2 instances and Amazon EC2 instances terminated in the last 30 days, up to a maximum of 2,000. Amazon EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.

SELECT
ebs_volumes,
ec_2_instance_id,
id,
instance_fleet_id,
instance_group_id,
instance_type,
market,
private_dns_name,
private_ip_address,
public_dns_name,
public_ip_address,
status
FROM aws.emr.instances
WHERE region = '{{ region }}' -- required
;