Manages a Kinesis Analytics v2 Application Snapshot. Snapshots are the AWS implementation of Flink Savepoints.
resource "aws_kinesisanalyticsv2_application_snapshot" "example" {
application_name = aws_kinesisanalyticsv2_application.example.name
snapshot_name = "example-snapshot"
}
This resource supports the following arguments:
application_name
- (Required) The name of an existing Kinesis Analytics v2 Application. Note that the application must be running for a snapshot to be created.snapshot_name
- (Required) The name of the application snapshot.This resource exports the following attributes in addition to the arguments above:
id
- The application snapshot identifier.application_version_id
- The current application version ID when the snapshot was created.snapshot_creation_timestamp
- The timestamp of the application snapshot.create
- (Default 10m
)delete
- (Default 10m
)In Terraform v1.5.0 and later, use an import
block to import aws_kinesisanalyticsv2_application
using application_name
together with snapshot_name
. For example:
import {
to = aws_kinesisanalyticsv2_application_snapshot.example
id = "example-application/example-snapshot"
}
Using terraform import
, import aws_kinesisanalyticsv2_application
using application_name
together with snapshot_name
. For example:
% terraform import aws_kinesisanalyticsv2_application_snapshot.example example-application/example-snapshot