recovery_snapshots
Creates, updates, deletes, gets or lists a recovery_snapshots resource.
Overview
| Name | recovery_snapshots |
| Type | Resource |
| Id | aws.drs.recovery_snapshots |
Fields
The following fields are returned by SELECT queries:
- describe_recovery_snapshots
| Name | Datatype | Description |
|---|---|---|
ebs_snapshots | array | A list of EBS snapshots. |
expected_timestamp | string | The timestamp of when we expect the snapshot to be taken. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>) |
snapshot_id | string | The ID of the Recovery Snapshot. (pattern: <code>pit-[0-9a-zA-Z]{17}</code>) |
source_server_id | string | The ID of the Source Server that the snapshot was taken for. (pattern: <code>s-[0-9a-zA-Z]{17}</code>) |
timestamp | string | The actual timestamp that the snapshot was taken. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_recovery_snapshots | select | region | Lists all Recovery Snapshots for a single Source Server. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_recovery_snapshots
Lists all Recovery Snapshots for a single Source Server.
SELECT
ebs_snapshots,
expected_timestamp,
snapshot_id,
source_server_id,
timestamp
FROM aws.drs.recovery_snapshots
WHERE region = '{{ region }}' -- required
;