This template sets up a basic AWS FinSpace Kx Database with a KMS key and an environment.

Terraform Template

resource "aws_finspace_kx_database" "example" {
  description = "Example database description"
  environment_id = aws_finspace_kx_environment.example.id
  name = "my-tf-kx-database"
}

resource "aws_finspace_kx_environment" "example" {
  kms_key_id = aws_kms_key.example.arn
  name = "my-tf-kx-environment"
}

resource "aws_kms_key" "example" {
  deletion_window_in_days = 7
  description = "Example KMS Key"
}