kx_environments
Creates, updates, deletes, gets or lists a kx_environments resource.
Overview
| Name | kx_environments |
| Type | Resource |
| Id | aws.finspace.kx_environments |
Fields
The following fields are returned by SELECT queries:
- get_kx_environment
- list_kx_environments
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the kdb environment. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$</code>) |
availability_zone_ids | array | The identifier of the availability zones where subnets for the environment are created. |
aws_account_id | string | The unique identifier of the AWS account that is used to create the kdb environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>) |
certificate_authority_arn | string | The Amazon Resource Name (ARN) of the certificate authority of the kdb environment. |
creation_timestamp | string (date-time) | The timestamp at which the kdb environment was created in FinSpace. |
custom_dns_configuration | array | A list of DNS server name and server IP. This is used to set up Route-53 outbound resolvers. |
dedicated_service_account_id | string | A unique identifier for the AWS environment infrastructure account. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>) |
description | string | A description for the kdb environment. (pattern: <code>^[a-zA-Z0-9. ]{1,1000}$</code>) |
dns_status | string | The status of DNS configuration. (NONE, UPDATE_REQUESTED, UPDATING, FAILED_UPDATE, SUCCESSFULLY_UPDATED) |
environment_arn | string | The ARN identifier of the environment. (pattern: <code>^arn:aws:finspace:[A-Za-z0-9_/.-]{0,63}:\d+:environment/[0-9A-Za-z_-]{1,128}$</code>) |
environment_id | string | A unique identifier for the kdb environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>) |
error_message | string | Specifies the error message that appears if a flow fails. (pattern: <code>^[a-zA-Z0-9. ]{1,1000}$</code>) |
kms_key_id | string | The KMS key ID to encrypt your data in the FinSpace environment. (pattern: <code>^[a-zA-Z-0-9-:/]*$</code>) |
status | string | The status of the kdb environment. (CREATE_REQUESTED, CREATING, CREATED, DELETE_REQUESTED, DELETING, DELETED, FAILED_CREATION, RETRY_DELETION, FAILED_DELETION, UPDATE_NETWORK_REQUESTED, UPDATING_NETWORK, FAILED_UPDATING_NETWORK, SUSPENDED) |
tgw_status | string | The status of the network configuration. (NONE, UPDATE_REQUESTED, UPDATING, FAILED_UPDATE, SUCCESSFULLY_UPDATED) |
transit_gateway_configuration | object | The structure of the transit gateway and network configuration that is used to connect the kdb environment to an internal network. |
update_timestamp | string (date-time) | The timestamp at which the kdb environment was updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the kdb environment. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$</code>) |
availability_zone_ids | array | The identifier of the availability zones where subnets for the environment are created. |
aws_account_id | string | The unique identifier of the AWS account in which you create the kdb environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>) |
certificate_authority_arn | string | The Amazon Resource Name (ARN) of the certificate authority: |
creation_timestamp | string (date-time) | The timestamp at which the kdb environment was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. |
custom_dns_configuration | array | A list of DNS server name and server IP. This is used to set up Route-53 outbound resolvers. |
dedicated_service_account_id | string | A unique identifier for the AWS environment infrastructure account. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>) |
description | string | A description of the kdb environment. (pattern: <code>^[a-zA-Z0-9. ]{1,1000}$</code>) |
dns_status | string | The status of DNS configuration. (NONE, UPDATE_REQUESTED, UPDATING, FAILED_UPDATE, SUCCESSFULLY_UPDATED) |
environment_arn | string | The Amazon Resource Name (ARN) of your kdb environment. (pattern: <code>^arn:aws:finspace:[A-Za-z0-9_/.-]{0,63}:\d+:environment/[0-9A-Za-z_-]{1,128}$</code>) |
environment_id | string | A unique identifier for the kdb environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>) |
error_message | string | Specifies the error message that appears if a flow fails. (pattern: <code>^[a-zA-Z0-9. ]{1,1000}$</code>) |
kms_key_id | string | The unique identifier of the KMS key. (pattern: <code>^[a-zA-Z-0-9-:/]*$</code>) |
status | string | The status of the environment creation. CREATE_REQUESTED – Environment creation has been requested. CREATING – Environment is in the process of being created. FAILED_CREATION – Environment creation has failed. CREATED – Environment is successfully created and is currently active. DELETE REQUESTED – Environment deletion has been requested. DELETING – Environment is in the process of being deleted. RETRY_DELETION – Initial environment deletion failed, system is reattempting delete. DELETED – Environment has been deleted. FAILED_DELETION – Environment deletion has failed. (CREATE_REQUESTED, CREATING, CREATED, DELETE_REQUESTED, DELETING, DELETED, FAILED_CREATION, RETRY_DELETION, FAILED_DELETION, UPDATE_NETWORK_REQUESTED, UPDATING_NETWORK, FAILED_UPDATING_NETWORK, SUSPENDED) |
tgw_status | string | The status of the network configuration. (NONE, UPDATE_REQUESTED, UPDATING, FAILED_UPDATE, SUCCESSFULLY_UPDATED) |
transit_gateway_configuration | object | Specifies the transit gateway and network configuration to connect the kdb environment to an internal network. |
update_timestamp | string (date-time) | The timestamp at which the kdb environment was modified in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_kx_environment | select | environment_id, region | Retrieves all the information for the specified kdb environment. | |
list_kx_environments | select | region | nextToken, maxResults | Returns a list of kdb environments created in an account. |
create_kx_environment | insert | region, name, kmsKeyId | Creates a managed kdb environment for the account. | |
update_kx_environment | update | environment_id, region | Updates information for the given kdb environment. | |
delete_kx_environment | delete | environment_id, region | clientToken | Deletes the kdb environment. This action is irreversible. Deleting a kdb environment will remove all the associated data and any services running in it. |
update_kx_environment_network | exec | environment_id, region | Updates environment network to connect to your internal network by using a transit gateway. This API supports request to create a transit gateway attachment from FinSpace VPC to your transit gateway ID and create a custom Route-53 outbound resolvers. Once you send a request to update a network, you cannot change it again. Network update might require termination of any clusters that are running in the existing network. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
environment_id | string | A unique identifier for the kdb environment. |
region | string | AWS region (default: us-east-1) |
clientToken | string | A token that ensures idempotency. This token expires in 10 minutes. |
maxResults | integer | The maximum number of results to return in this request. |
nextToken | string | A token that indicates where a results page should begin. |
SELECT examples
- get_kx_environment
- list_kx_environments
Retrieves all the information for the specified kdb environment.
SELECT
name,
availability_zone_ids,
aws_account_id,
certificate_authority_arn,
creation_timestamp,
custom_dns_configuration,
dedicated_service_account_id,
description,
dns_status,
environment_arn,
environment_id,
error_message,
kms_key_id,
status,
tgw_status,
transit_gateway_configuration,
update_timestamp
FROM aws.finspace.kx_environments
WHERE environment_id = '{{ environment_id }}' -- required
AND region = '{{ region }}' -- required
;
Returns a list of kdb environments created in an account.
SELECT
name,
availability_zone_ids,
aws_account_id,
certificate_authority_arn,
creation_timestamp,
custom_dns_configuration,
dedicated_service_account_id,
description,
dns_status,
environment_arn,
environment_id,
error_message,
kms_key_id,
status,
tgw_status,
transit_gateway_configuration,
update_timestamp
FROM aws.finspace.kx_environments
WHERE region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;
INSERT examples
- create_kx_environment
- Manifest
Creates a managed kdb environment for the account.
INSERT INTO aws.finspace.kx_environments (
name,
description,
kmsKeyId,
tags,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ kmsKeyId }}' /* required */,
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
name,
creation_timestamp,
description,
environment_arn,
environment_id,
kms_key_id,
status
;
# Description fields are for documentation purposes
- name: kx_environments
props:
- name: region
value: "{{ region }}"
description: Required parameter for the kx_environments resource.
- name: name
value: "{{ name }}"
- name: description
value: "{{ description }}"
- name: kmsKeyId
value: "{{ kmsKeyId }}"
- name: tags
value: "{{ tags }}"
- name: clientToken
value: "{{ clientToken }}"
UPDATE examples
- update_kx_environment
Updates information for the given kdb environment.
UPDATE aws.finspace.kx_environments
SET
name = '{{ name }}',
description = '{{ description }}',
clientToken = '{{ clientToken }}'
WHERE
environment_id = '{{ environment_id }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
availability_zone_ids,
aws_account_id,
creation_timestamp,
custom_dns_configuration,
dedicated_service_account_id,
description,
dns_status,
environment_arn,
environment_id,
error_message,
kms_key_id,
status,
tgw_status,
transit_gateway_configuration,
update_timestamp;
DELETE examples
- delete_kx_environment
Deletes the kdb environment. This action is irreversible. Deleting a kdb environment will remove all the associated data and any services running in it.
DELETE FROM aws.finspace.kx_environments
WHERE environment_id = '{{ environment_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;
Lifecycle Methods
- update_kx_environment_network
Updates environment network to connect to your internal network by using a transit gateway. This API supports request to create a transit gateway attachment from FinSpace VPC to your transit gateway ID and create a custom Route-53 outbound resolvers. Once you send a request to update a network, you cannot change it again. Network update might require termination of any clusters that are running in the existing network.
EXEC aws.finspace.kx_environments.update_kx_environment_network
@environment_id='{{ environment_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"transitGatewayConfiguration": "{{ transitGatewayConfiguration }}",
"customDNSConfiguration": "{{ customDNSConfiguration }}",
"clientToken": "{{ clientToken }}"
}'
;