Skip to main content

instance_states

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

Overview

Nameinstance_states
TypeResource
Idaws.lightsail.instance_states

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe state of the instance (running or pending).
codeintegerThe status code for the instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_instance_stateselectregionReturns the state of a specific instance. Works on one instance at a time.

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

Returns the state of a specific instance. Works on one instance at a time.

SELECT
name,
code
FROM aws.lightsail.instance_states
WHERE region = '{{ region }}' -- required
;