Terraform resource for managing an EBS (Elastic Block Storage) Fast Snapshot Restore.
resource "aws_ebs_fast_snapshot_restore" "example" {
availability_zone = "us-west-2a"
snapshot_id = aws_ebs_snapshot.example.id
}
The following arguments are required:
availability_zone
- (Required) Availability zone in which to enable fast snapshot restores.snapshot_id
- (Required) ID of the snapshot.This resource exports the following attributes in addition to the arguments above:
id
- A comma-delimited string concatenating availability_zone
and snapshot_id
.state
- State of fast snapshot restores. Valid values are enabling
, optimizing
, enabled
, disabling
, disabled
.create
- (Default 10m
)delete
- (Default 10m
)In Terraform v1.5.0 and later, use an import
block to import EC2 (Elastic Compute Cloud) EBS Fast Snapshot Restore using the example_id_arg
. For example:
import {
to = aws_ebs_fast_snapshot_restore.example
id = "us-west-2a,snap-abcdef123456"
}
Using terraform import
, import EC2 (Elastic Compute Cloud) EBS Fast Snapshot Restore using the id
. For example:
% terraform import aws_ebs_fast_snapshot_restore.example us-west-2a,snap-abcdef123456