Skip to main content

elastic_gpus

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

Overview

Nameelastic_gpus
TypeResource
Idaws.ec2.elastic_gpus

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availability_zonestringThe Availability Zone in the which the Elastic Graphics accelerator resides.
elastic_gpu_healthstringThe status of the Elastic Graphics accelerator.
elastic_gpu_idstringThe ID of the Elastic Graphics accelerator.
elastic_gpu_statestringThe state of the Elastic Graphics accelerator.
elastic_gpu_typestringThe type of Elastic Graphics accelerator.
instance_idstringThe ID of the instance to which the Elastic Graphics accelerator is attached.
tagsstringThe tags assigned to the Elastic Graphics accelerator.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_elastic_gpusselectregionElasticGpuId, DryRun, Filter, MaxResults, NextTokenAmazon Elastic Graphics reached end of life on January 8, 2024. Describes the Elastic Graphics accelerator associated with your instances.

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)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
ElasticGpuIdarrayThe Elastic Graphics accelerator IDs.
FilterarrayThe filters. availability-zone - The Availability Zone in which the Elastic Graphics accelerator resides. elastic-gpu-health - The status of the Elastic Graphics accelerator (OK | IMPAIRED). elastic-gpu-state - The state of the Elastic Graphics accelerator (ATTACHED). elastic-gpu-type - The type of Elastic Graphics accelerator; for example, eg1.medium. instance-id - The ID of the instance to which the Elastic Graphics accelerator is associated.
MaxResultsintegerThe maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 5 and 1000.
NextTokenstringThe token to request the next page of results.

SELECT examples

Amazon Elastic Graphics reached end of life on January 8, 2024. Describes the Elastic Graphics accelerator associated with your instances.

SELECT
availability_zone,
elastic_gpu_health,
elastic_gpu_id,
elastic_gpu_state,
elastic_gpu_type,
instance_id,
tags
FROM aws.ec2.elastic_gpus
WHERE region = '{{ region }}' -- required
AND ElasticGpuId = '{{ ElasticGpuId }}'
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;