Resource: aws_finspace_kx_environment

Terraform resource for managing an AWS FinSpace Kx Environment.

Example Usage

Basic Usage

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

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

With Transit Gateway Configuration

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

resource "aws_ec2_transit_gateway" "example" {
  description = "example"
}

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

  transit_gateway_configuration {
    transit_gateway_id  = aws_ec2_transit_gateway.example.id
    routable_cidr_space = "100.64.0.0/26"
  }

  custom_dns_configuration {
    custom_dns_server_name = "example.finspace.amazonaws.com"
    custom_dns_server_ip   = "10.0.0.76"
  }
}

With Transit Gateway Attachment Network ACL Configuration

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

resource "aws_ec2_transit_gateway" "example" {
  description = "example"
}

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

  transit_gateway_configuration {
    transit_gateway_id  = aws_ec2_transit_gateway.example.id
    routable_cidr_space = "100.64.0.0/26"
    attachment_network_acl_configuration {
      rule_number = 1
      protocol    = "6"
      rule_action = "allow"
      cidr_block  = "0.0.0.0/0"
      port_range {
        from = 53
        to   = 53
      }
      icmp_type_code {
        type = -1
        code = -1
      }
    }
  }

  custom_dns_configuration {
    custom_dns_server_name = "example.finspace.amazonaws.com"
    custom_dns_server_ip   = "10.0.0.76"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

custom_dns_configuration

The custom_dns_configuration block supports the following arguments:

transit_gateway_configuration

The transit_gateway_configuration block supports the following arguments:

attachment_network_acl_configuration

The network access control list (ACL) is an optional layer of security for VPCs that acts as a firewall for controlling traffic in and out of one or more subnets. The entry is a set of numbered ingress and egress rules that determine whether a packet should be allowed in or out of a subnet associated with the ACL. Entries in the ACL are processed according to the rule numbers, in ascending order. The attachment_network_acl_configuration block supports the following arguments:

port_range

The range of ports the rule applies to (between 0 and 65535). The port_range block supports the following arguments:

icmp_type_code

Defines the ICMP protocol that consists of the ICMP type and code. The icmp_type_code block supports the following arguments:

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import an AWS FinSpace Kx Environment using the id. For example:

import {
  to = aws_finspace_kx_environment.example
  id = "n3ceo7wqxoxcti5tujqwzs"
}

Using terraform import, import an AWS FinSpace Kx Environment using the id. For example:

% terraform import aws_finspace_kx_environment.example n3ceo7wqxoxcti5tujqwzs