Resource: aws_timestreamwrite_database

Provides a Timestream database resource.

Example Usage

Basic usage

resource "aws_timestreamwrite_database" "example" {
  database_name = "database-example"
}

Full usage

resource "aws_timestreamwrite_database" "example" {
  database_name = "database-example"
  kms_key_id    = aws_kms_key.example.arn

  tags = {
    Name = "value"
  }
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Timestream databases using the database_name. For example:

import {
  to = aws_timestreamwrite_database.example
  id = "example"
}

Using terraform import, import Timestream databases using the database_name. For example:

% terraform import aws_timestreamwrite_database.example example