The AWS::Timestream::Database resource creates a Timestream database.
Create a Timestream database
resource "aws_kms_key" "this" {
description = "Timestream KMS Key"
}
resource "awscc_timestream_database" "this" {
database_name = "MyTimestreamDB"
kms_key_id = aws_kms_key.this.key_id
tags = [{
key = "Managed By"
value = "AWSCC"
}]
}
database_name
(String) The name for the database. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the database name.kms_key_id
(String) The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account.tags
(Attributes List) An array of key-value pairs to apply to this resource. (see below for nested schema)arn
(String)id
(String) Uniquely identifies the resource.tags
Optional:
key
(String)value
(String)Import is supported using the following syntax:
$ terraform import awscc_timestream_database.example <resource ID>