db_clusters
Creates, updates, deletes, gets or lists a db_clusters resource.
Overview
| Name | db_clusters |
| Type | Resource |
| Id | aws.timestream_influxdb.db_clusters |
Fields
The following fields are returned by SELECT queries:
- get_db_cluster
- list_db_clusters
| Name | Datatype | Description |
|---|---|---|
id | string | Service-generated unique identifier of the DB cluster to retrieve. (pattern: <code>[a-zA-Z0-9]+</code>) |
name | string | Customer-supplied name of the Timestream for InfluxDB cluster. (pattern: <code>[a-zA-z][a-zA-Z0-9](-[a-zA-Z0-9]+)</code>) |
allocated_storage | integer | The amount of storage allocated for your DB storage type (in gibibytes). |
arn | string | The Amazon Resource Name (ARN) of the DB cluster. (pattern: <code>arn:aws[a-z-]*:timestream-influxdb:[a-z0-9-]+:[0-9]{12}:(db-instance|db-cluster|db-parameter-group|db-backup)/[a-zA-Z0-9]{3,64}</code>) |
cluster_configuration | object | Configuration for node modes in the DbCluster. |
db_backup_configurations | array | The backup configurations for the DB cluster. |
db_instance_type | string | The Timestream for InfluxDB instance type that InfluxDB runs on. (db.influx.medium, db.influx.large, db.influx.xlarge, db.influx.2xlarge, db.influx.4xlarge, db.influx.8xlarge, db.influx.12xlarge, db.influx.16xlarge, db.influx.24xlarge) |
db_parameter_group_identifier | string | The ID of the DB parameter group assigned to your DB cluster. (pattern: <code>[a-zA-Z0-9]+</code>) |
db_storage_type | string | The Timestream for InfluxDB DB storage type that InfluxDB stores data on. (InfluxIOIncludedT1, InfluxIOIncludedT2, InfluxIOIncludedT3) |
deployment_type | string | Deployment type of the DB cluster. (MULTI_NODE_READ_REPLICAS) |
endpoint | string | The endpoint used to connect to the Timestream for InfluxDB cluster for write and read operations. |
engine_type | string | The engine type of your DB cluster. (INFLUXDB_V2, INFLUXDB_V3_CORE, INFLUXDB_V3_ENTERPRISE) |
failover_mode | string | The configured failover mode for the DB cluster. (AUTOMATIC, NO_FAILOVER) |
influx_auth_parameters_secret_arn | string | The Amazon Resource Name (ARN) of the Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password. |
kms_key_id | string | The Amazon Web Services KMS key ARN used for encryption of the DB cluster. (pattern: <code>[a-zA-Z0-9:/_-]+</code>) |
last_maintenance_time | string (date-time) | The timestamp of the last completed maintenance operation on the DB cluster. |
log_delivery_configuration | object | Configuration for sending InfluxDB engine logs to send to specified S3 bucket. |
maintenance_schedule | object | The maintenance schedule for the DB cluster. |
network_type | string | Specifies whether the network type of the Timestream for InfluxDB cluster is IPv4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols. (IPV4, DUAL) |
next_maintenance_time | string (date-time) | The timestamp of the next scheduled maintenance operation on the DB cluster. |
port | integer | The port number on which InfluxDB accepts connections. |
publicly_accessible | boolean | Indicates if the DB cluster has a public IP to facilitate access from outside the VPC. |
reader_endpoint | string | The endpoint used to connect to the Timestream for InfluxDB cluster for read-only operations. |
status | string | The status of the DB cluster. (CREATING, UPDATING, DELETING, AVAILABLE, FAILED, DELETED, MAINTENANCE, UPDATING_INSTANCE_TYPE, REBOOTING, REBOOT_FAILED, PARTIALLY_AVAILABLE, RESTORING, RESTORE_FAILED) |
vpc_security_group_ids | array | A list of VPC security group IDs associated with the DB cluster. |
vpc_subnet_ids | array | A list of VPC subnet IDs associated with the DB cluster. |
| Name | Datatype | Description |
|---|---|---|
id | string | Service-generated unique identifier of the DB cluster to retrieve. (pattern: <code>[a-zA-Z0-9]+</code>) |
name | string | Customer supplied name of the Timestream for InfluxDB cluster. (pattern: <code>[a-zA-z][a-zA-Z0-9](-[a-zA-Z0-9]+)</code>) |
allocated_storage | integer | The amount of storage allocated for your DB storage type (in gibibytes). |
arn | string | The Amazon Resource Name (ARN) of the DB cluster. (pattern: <code>arn:aws[a-z-]*:timestream-influxdb:[a-z0-9-]+:[0-9]{12}:(db-instance|db-cluster|db-parameter-group|db-backup)/[a-zA-Z0-9]{3,64}</code>) |
db_instance_type | string | The Timestream for InfluxDB DB instance type that InfluxDB runs on. (db.influx.medium, db.influx.large, db.influx.xlarge, db.influx.2xlarge, db.influx.4xlarge, db.influx.8xlarge, db.influx.12xlarge, db.influx.16xlarge, db.influx.24xlarge) |
db_storage_type | string | The Timestream for InfluxDB DB storage type that InfluxDB stores data on. (InfluxIOIncludedT1, InfluxIOIncludedT2, InfluxIOIncludedT3) |
deployment_type | string | Deployment type of the DB cluster (MULTI_NODE_READ_REPLICAS) |
endpoint | string | The endpoint used to connect to the Timestream for InfluxDB cluster for write and read operations. |
engine_type | string | The engine type of your DB cluster. (INFLUXDB_V2, INFLUXDB_V3_CORE, INFLUXDB_V3_ENTERPRISE) |
network_type | string | Specifies whether the network type of the Timestream for InfluxDB Cluster is IPv4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols. (IPV4, DUAL) |
port | integer | The port number on which InfluxDB accepts connections. |
reader_endpoint | string | The endpoint used to connect to the Timestream for InfluxDB cluster for read-only operations. |
status | string | The status of the DB cluster. (CREATING, UPDATING, DELETING, AVAILABLE, FAILED, DELETED, MAINTENANCE, UPDATING_INSTANCE_TYPE, REBOOTING, REBOOT_FAILED, PARTIALLY_AVAILABLE, RESTORING, RESTORE_FAILED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_db_cluster | select | region | Retrieves information about a Timestream for InfluxDB cluster. | |
list_db_clusters | select | region | Returns a list of Timestream for InfluxDB DB clusters. | |
create_db_cluster | insert | region, name, dbInstanceType, vpcSubnetIds, vpcSecurityGroupIds | Creates a new Timestream for InfluxDB cluster. | |
update_db_cluster | update | region, dbClusterId | Updates a Timestream for InfluxDB cluster. | |
delete_db_cluster | delete | region | Deletes a Timestream for InfluxDB cluster. | |
reboot_db_cluster | exec | region, dbClusterId | Reboots a Timestream for InfluxDB cluster. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_db_cluster
- list_db_clusters
Retrieves information about a Timestream for InfluxDB cluster.
SELECT
id,
name,
allocated_storage,
arn,
cluster_configuration,
db_backup_configurations,
db_instance_type,
db_parameter_group_identifier,
db_storage_type,
deployment_type,
endpoint,
engine_type,
failover_mode,
influx_auth_parameters_secret_arn,
kms_key_id,
last_maintenance_time,
log_delivery_configuration,
maintenance_schedule,
network_type,
next_maintenance_time,
port,
publicly_accessible,
reader_endpoint,
status,
vpc_security_group_ids,
vpc_subnet_ids
FROM aws.timestream_influxdb.db_clusters
WHERE region = '{{ region }}' -- required
;
Returns a list of Timestream for InfluxDB DB clusters.
SELECT
id,
name,
allocated_storage,
arn,
db_instance_type,
db_storage_type,
deployment_type,
endpoint,
engine_type,
network_type,
port,
reader_endpoint,
status
FROM aws.timestream_influxdb.db_clusters
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_db_cluster
- Manifest
Creates a new Timestream for InfluxDB cluster.
INSERT INTO aws.timestream_influxdb.db_clusters (
name,
username,
password,
organization,
bucket,
port,
dbParameterGroupIdentifier,
dbInstanceType,
dbStorageType,
allocatedStorage,
networkType,
publiclyAccessible,
vpcSubnetIds,
vpcSecurityGroupIds,
deploymentType,
failoverMode,
logDeliveryConfiguration,
maintenanceSchedule,
dbBackupConfigurations,
kmsKeyId,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ username }}',
'{{ password }}',
'{{ organization }}',
'{{ bucket }}',
{{ port }},
'{{ dbParameterGroupIdentifier }}',
'{{ dbInstanceType }}' /* required */,
'{{ dbStorageType }}',
{{ allocatedStorage }},
'{{ networkType }}',
{{ publiclyAccessible }},
'{{ vpcSubnetIds }}' /* required */,
'{{ vpcSecurityGroupIds }}' /* required */,
'{{ deploymentType }}',
'{{ failoverMode }}',
'{{ logDeliveryConfiguration }}',
'{{ maintenanceSchedule }}',
'{{ dbBackupConfigurations }}',
'{{ kmsKeyId }}',
'{{ tags }}',
'{{ region }}'
RETURNING
db_cluster_id,
db_cluster_status
;
# Description fields are for documentation purposes
- name: db_clusters
props:
- name: region
value: "{{ region }}"
description: Required parameter for the db_clusters resource.
- name: name
value: "{{ name }}"
description: |
The name that uniquely identifies the DB cluster when interacting with the Amazon Timestream for InfluxDB API and CLI commands. This name will also be a prefix included in the endpoint. DB cluster names must be unique per customer and per region.
- name: username
value: "{{ username }}"
description: |
The username of the initial admin user created in InfluxDB. Must start with a letter and can't end with a hyphen or contain two consecutive hyphens. For example, my-user1. This username will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a secret created in Secrets Manager in your account.
- name: password
value: "{{ password }}"
description: |
The password of the initial admin user created in InfluxDB. This password will allow you to access the InfluxDB UI to perform various administrative tasks and also use the InfluxDB CLI to create an operator token. These attributes will be stored in a secret created in Secrets Manager in your account.
- name: organization
value: "{{ organization }}"
description: |
The name of the initial organization for the initial admin user in InfluxDB. An InfluxDB organization is a workspace for a group of users.
- name: bucket
value: "{{ bucket }}"
description: |
The name of the initial InfluxDB bucket. All InfluxDB data is stored in a bucket. A bucket combines the concept of a database and a retention period (the duration of time that each data point persists). A bucket belongs to an organization.
- name: port
value: {{ port }}
description: |
The port number on which InfluxDB accepts connections. Valid Values: 1024-65535 Default: 8086 for InfluxDB v2, 8181 for InfluxDB v3 Constraints: The value can't be 2375-2376, 7788-7799, 8090, or 51678-51680
- name: dbParameterGroupIdentifier
value: "{{ dbParameterGroupIdentifier }}"
description: |
The ID of the DB parameter group to assign to your DB cluster. DB parameter groups specify how the database is configured. For example, DB parameter groups can specify the limit for query concurrency.
- name: dbInstanceType
value: "{{ dbInstanceType }}"
description: |
The Timestream for InfluxDB DB instance type to run InfluxDB on.
valid_values: ['db.influx.medium', 'db.influx.large', 'db.influx.xlarge', 'db.influx.2xlarge', 'db.influx.4xlarge', 'db.influx.8xlarge', 'db.influx.12xlarge', 'db.influx.16xlarge', 'db.influx.24xlarge']
- name: dbStorageType
value: "{{ dbStorageType }}"
description: |
The Timestream for InfluxDB DB storage type to read and write InfluxDB data. You can choose between three different types of provisioned Influx IOPS Included storage according to your workload requirements: Influx I/O Included 3000 IOPS Influx I/O Included 12000 IOPS Influx I/O Included 16000 IOPS
valid_values: ['InfluxIOIncludedT1', 'InfluxIOIncludedT2', 'InfluxIOIncludedT3']
- name: allocatedStorage
value: {{ allocatedStorage }}
description: |
The amount of storage to allocate for your DB storage type in GiB (gibibytes).
- name: networkType
value: "{{ networkType }}"
description: |
Specifies whether the network type of the Timestream for InfluxDB cluster is IPv4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols.
valid_values: ['IPV4', 'DUAL']
- name: publiclyAccessible
value: {{ publiclyAccessible }}
description: |
Configures the Timestream for InfluxDB cluster with a public IP to facilitate access from outside the VPC.
- name: vpcSubnetIds
value:
- "{{ vpcSubnetIds }}"
description: |
A list of VPC subnet IDs to associate with the DB cluster. Provide at least two VPC subnet IDs in different Availability Zones when deploying with a Multi-AZ standby.
- name: vpcSecurityGroupIds
value:
- "{{ vpcSecurityGroupIds }}"
description: |
A list of VPC security group IDs to associate with the Timestream for InfluxDB cluster.
- name: deploymentType
value: "{{ deploymentType }}"
description: |
Specifies the type of cluster to create.
valid_values: ['MULTI_NODE_READ_REPLICAS']
- name: failoverMode
value: "{{ failoverMode }}"
description: |
Specifies the behavior of failure recovery when the primary node of the cluster fails.
valid_values: ['AUTOMATIC', 'NO_FAILOVER']
- name: logDeliveryConfiguration
description: |
Configuration for sending InfluxDB engine logs to a specified S3 bucket.
value:
s3Configuration:
bucketName: "{{ bucketName }}"
enabled: {{ enabled }}
- name: maintenanceSchedule
description: |
Specifies the maintenance schedule for the DB cluster, including the preferred maintenance window and timezone.
value:
timezone: "{{ timezone }}"
preferredMaintenanceWindow: "{{ preferredMaintenanceWindow }}"
- name: dbBackupConfigurations
description: |
A list of backup configurations to enable automated backups for the DB cluster.
value:
- type_: "{{ type_ }}"
retentionDays: {{ retentionDays }}
enabled: {{ enabled }}
customSchedule: "{{ customSchedule }}"
- name: kmsKeyId
value: "{{ kmsKeyId }}"
description: |
The Amazon Web Services KMS key identifier to use for encryption of the DB cluster. Can be a key ID, key ARN, alias name, or alias ARN.
- name: tags
value: "{{ tags }}"
description: |
A list of key-value pairs to associate with the DB instance.
UPDATE examples
- update_db_cluster
Updates a Timestream for InfluxDB cluster.
UPDATE aws.timestream_influxdb.db_clusters
SET
dbClusterId = '{{ dbClusterId }}',
logDeliveryConfiguration = '{{ logDeliveryConfiguration }}',
dbParameterGroupIdentifier = '{{ dbParameterGroupIdentifier }}',
port = {{ port }},
dbInstanceType = '{{ dbInstanceType }}',
failoverMode = '{{ failoverMode }}',
maintenanceSchedule = '{{ maintenanceSchedule }}',
dbBackupConfigurations = '{{ dbBackupConfigurations }}'
WHERE
region = '{{ region }}' --required
AND dbClusterId = '{{ dbClusterId }}' --required
RETURNING
db_cluster_status;
DELETE examples
- delete_db_cluster
Deletes a Timestream for InfluxDB cluster.
DELETE FROM aws.timestream_influxdb.db_clusters
WHERE region = '{{ region }}' --required
;
Lifecycle Methods
- reboot_db_cluster
Reboots a Timestream for InfluxDB cluster.
EXEC aws.timestream_influxdb.db_clusters.reboot_db_cluster
@region='{{ region }}' --required
@@json=
'{
"dbClusterId": "{{ dbClusterId }}",
"instanceIds": "{{ instanceIds }}"
}'
;