Skip to main content

db_instances

Creates, updates, deletes, gets or lists a db_instances resource.

Overview

Namedb_instances
TypeResource
Idaws.timestream_influxdb.db_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringA service-generated unique identifier. (pattern: <code>[a-zA-Z0-9]+</code>)
namestringThe customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands. (pattern: <code>[a-zA-Z][a-zA-Z0-9](-[a-zA-Z0-9]+)</code>)
allocated_storageintegerThe amount of storage allocated for your DB storage type (in gibibytes).
arnstringThe Amazon Resource Name (ARN) of the DB instance. (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>)
availability_zonestringThe Availability Zone in which the DB instance resides.
db_backup_configurationsarrayThe backup configurations for the DB instance.
db_cluster_idstringSpecifies the DbCluster to which this DbInstance belongs to. (pattern: <code>[a-zA-Z0-9]+</code>)
db_instance_typestringThe 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_identifierstringThe id of the DB parameter group assigned to your DB instance. (pattern: <code>[a-zA-Z0-9]+</code>)
db_storage_typestringThe Timestream for InfluxDB DB storage type that InfluxDB stores data on. (InfluxIOIncludedT1, InfluxIOIncludedT2, InfluxIOIncludedT3)
deployment_typestringSpecifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability. (SINGLE_AZ, WITH_MULTIAZ_STANDBY)
endpointstringThe endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
influx_auth_parameters_secret_arnstringThe 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.
instance_modestringSpecifies the DbInstance's role in the cluster. (PRIMARY, STANDBY, REPLICA, INGEST, QUERY, COMPACT, PROCESS)
instance_modesarraySpecifies the DbInstance's roles in the cluster.
kms_key_idstringThe Amazon Web Services KMS key ARN used for encryption of the DB instance. (pattern: <code>[a-zA-Z0-9:/_-]+</code>)
last_maintenance_timestring (date-time)The timestamp of the last completed maintenance operation on the DB instance.
log_delivery_configurationobjectConfiguration for sending InfluxDB engine logs to send to specified S3 bucket.
maintenance_scheduleobjectThe maintenance schedule for the DB instance.
network_typestringSpecifies whether the networkType of the Timestream for InfluxDB instance is IPV4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols. (IPV4, DUAL)
next_maintenance_timestring (date-time)The timestamp of the next scheduled maintenance operation on the DB instance.
portintegerThe port number on which InfluxDB accepts connections.
publicly_accessiblebooleanIndicates if the DB instance has a public IP to facilitate access.
secondary_availability_zonestringThe Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.
statusstringThe status of the DB instance. (CREATING, AVAILABLE, DELETING, MODIFYING, UPDATING, DELETED, FAILED, UPDATING_DEPLOYMENT_TYPE, UPDATING_INSTANCE_TYPE, MAINTENANCE, REBOOTING, REBOOT_FAILED, RESTORING, RESTORE_FAILED)
vpc_security_group_idsarrayA list of VPC security group IDs associated with the DB instance.
vpc_subnet_idsarrayA list of VPC subnet IDs associated with the DB instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_db_instanceselectregionReturns a Timestream for InfluxDB DB instance.
list_db_instancesselectregionReturns a list of Timestream for InfluxDB DB instances.
create_db_instanceinsertregion, name, password, dbInstanceType, vpcSubnetIds, vpcSecurityGroupIds, allocatedStorageCreates a new Timestream for InfluxDB DB instance.
update_db_instanceupdateregion, identifierUpdates a Timestream for InfluxDB DB instance.
delete_db_instancedeleteregionDeletes a Timestream for InfluxDB DB instance.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a Timestream for InfluxDB DB instance.

SELECT
id,
name,
allocated_storage,
arn,
availability_zone,
db_backup_configurations,
db_cluster_id,
db_instance_type,
db_parameter_group_identifier,
db_storage_type,
deployment_type,
endpoint,
influx_auth_parameters_secret_arn,
instance_mode,
instance_modes,
kms_key_id,
last_maintenance_time,
log_delivery_configuration,
maintenance_schedule,
network_type,
next_maintenance_time,
port,
publicly_accessible,
secondary_availability_zone,
status,
vpc_security_group_ids,
vpc_subnet_ids
FROM aws.timestream_influxdb.db_instances
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new Timestream for InfluxDB DB instance.

INSERT INTO aws.timestream_influxdb.db_instances (
name,
username,
password,
organization,
bucket,
dbInstanceType,
vpcSubnetIds,
vpcSecurityGroupIds,
publiclyAccessible,
dbStorageType,
allocatedStorage,
dbParameterGroupIdentifier,
deploymentType,
logDeliveryConfiguration,
maintenanceSchedule,
tags,
port,
networkType,
dbBackupConfigurations,
kmsKeyId,
region
)
SELECT
'{{ name }}' /* required */,
'{{ username }}',
'{{ password }}' /* required */,
'{{ organization }}',
'{{ bucket }}',
'{{ dbInstanceType }}' /* required */,
'{{ vpcSubnetIds }}' /* required */,
'{{ vpcSecurityGroupIds }}' /* required */,
{{ publiclyAccessible }},
'{{ dbStorageType }}',
{{ allocatedStorage }} /* required */,
'{{ dbParameterGroupIdentifier }}',
'{{ deploymentType }}',
'{{ logDeliveryConfiguration }}',
'{{ maintenanceSchedule }}',
'{{ tags }}',
{{ port }},
'{{ networkType }}',
'{{ dbBackupConfigurations }}',
'{{ kmsKeyId }}',
'{{ region }}'
RETURNING
id,
name,
allocated_storage,
arn,
availability_zone,
db_backup_configurations,
db_cluster_id,
db_instance_type,
db_parameter_group_identifier,
db_storage_type,
deployment_type,
endpoint,
influx_auth_parameters_secret_arn,
instance_mode,
instance_modes,
kms_key_id,
last_maintenance_time,
log_delivery_configuration,
maintenance_schedule,
network_type,
next_maintenance_time,
port,
publicly_accessible,
secondary_availability_zone,
status,
vpc_security_group_ids,
vpc_subnet_ids
;

UPDATE examples

Updates a Timestream for InfluxDB DB instance.

UPDATE aws.timestream_influxdb.db_instances
SET
identifier = '{{ identifier }}',
logDeliveryConfiguration = '{{ logDeliveryConfiguration }}',
dbParameterGroupIdentifier = '{{ dbParameterGroupIdentifier }}',
port = {{ port }},
dbInstanceType = '{{ dbInstanceType }}',
deploymentType = '{{ deploymentType }}',
dbStorageType = '{{ dbStorageType }}',
allocatedStorage = {{ allocatedStorage }},
maintenanceSchedule = '{{ maintenanceSchedule }}',
dbBackupConfigurations = '{{ dbBackupConfigurations }}'
WHERE
region = '{{ region }}' --required
AND identifier = '{{ identifier }}' --required
RETURNING
id,
name,
allocated_storage,
arn,
availability_zone,
db_backup_configurations,
db_cluster_id,
db_instance_type,
db_parameter_group_identifier,
db_storage_type,
deployment_type,
endpoint,
influx_auth_parameters_secret_arn,
instance_mode,
instance_modes,
kms_key_id,
last_maintenance_time,
log_delivery_configuration,
maintenance_schedule,
network_type,
next_maintenance_time,
port,
publicly_accessible,
secondary_availability_zone,
status,
vpc_security_group_ids,
vpc_subnet_ids;

DELETE examples

Deletes a Timestream for InfluxDB DB instance.

DELETE FROM aws.timestream_influxdb.db_instances
WHERE region = '{{ region }}' --required
;