Skip to main content

influxdb_instances

Creates, updates, deletes or gets an influxdb_instance resource or lists influxdb_instances in a region

Overview

Nameinfluxdb_instances
TypeResource
DescriptionThe AWS::Timestream::InfluxDBInstance resource creates an InfluxDB instance.
Idawscc.timestream.influxdb_instances

Fields

NameDatatypeDescription
usernamestringThe username for the InfluxDB instance.
passwordstringThe password for the InfluxDB instance.
organizationstringThe organization for the InfluxDB instance.
bucketstringThe bucket for the InfluxDB instance.
db_instance_typestringThe compute instance of the InfluxDB instance.
vpc_subnet_idsarrayA list of EC2 subnet IDs for this InfluxDB instance.
vpc_security_group_idsarrayA list of Amazon EC2 VPC security groups to associate with this InfluxDB instance.
publicly_accessiblebooleanAttach a public IP to the customer ENI.
db_storage_typestringThe storage type of the InfluxDB instance.
allocated_storageintegerThe allocated storage for the InfluxDB instance.
db_parameter_group_identifierstringThe name of an existing InfluxDB parameter group.
portintegerThe port number on which InfluxDB accepts connections.
network_typestringNetwork type of the InfluxDB Instance.
log_delivery_configurationobjectConfiguration for sending logs to customer account from the InfluxDB instance.
statusstringStatus of the InfluxDB Instance.
arnstringThe Amazon Resource Name (ARN) that is associated with the InfluxDB instance.
namestringThe unique name that is associated with the InfluxDB instance.
availability_zonestringThe Availability Zone (AZ) where the InfluxDB instance is created.
secondary_availability_zonestringThe Secondary Availability Zone (AZ) where the InfluxDB instance is created, if DeploymentType is set as WITH_MULTIAZ_STANDBY.
endpointstringThe connection endpoint for the InfluxDB instance.
influx_auth_parameters_secret_arnstringThe Auth parameters secret Amazon Resource name (ARN) that is associated with the InfluxDB instance.
idstringThe service generated unique identifier for InfluxDB instance.
deployment_typestringDeployment type of the InfluxDB Instance.
tagsarrayAn arbitrary set of tags (key-value pairs) for this DB instance.
regionstringAWS region.

For more information, see AWS::Timestream::InfluxDBInstance.

Methods

NameResourceAccessible byRequired Params
create_resourceinfluxdb_instancesINSERTregion
delete_resourceinfluxdb_instancesDELETEIdentifier, region
update_resourceinfluxdb_instancesUPDATEIdentifier, PatchDocument, region
list_resourcesinfluxdb_instances_list_onlySELECTregion
get_resourceinfluxdb_instancesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual influxdb_instance.

SELECT
region,
username,
password,
organization,
bucket,
db_instance_type,
vpc_subnet_ids,
vpc_security_group_ids,
publicly_accessible,
db_storage_type,
allocated_storage,
db_parameter_group_identifier,
port,
network_type,
log_delivery_configuration,
status,
arn,
name,
availability_zone,
secondary_availability_zone,
endpoint,
influx_auth_parameters_secret_arn,
id,
deployment_type,
tags
FROM awscc.timestream.influxdb_instances
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new influxdb_instance resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.timestream.influxdb_instances (
Username,
Password,
Organization,
Bucket,
DbInstanceType,
VpcSubnetIds,
VpcSecurityGroupIds,
PubliclyAccessible,
DbStorageType,
AllocatedStorage,
DbParameterGroupIdentifier,
Port,
NetworkType,
LogDeliveryConfiguration,
Name,
DeploymentType,
Tags,
region
)
SELECT
'{{ username }}',
'{{ password }}',
'{{ organization }}',
'{{ bucket }}',
'{{ db_instance_type }}',
'{{ vpc_subnet_ids }}',
'{{ vpc_security_group_ids }}',
'{{ publicly_accessible }}',
'{{ db_storage_type }}',
'{{ allocated_storage }}',
'{{ db_parameter_group_identifier }}',
'{{ port }}',
'{{ network_type }}',
'{{ log_delivery_configuration }}',
'{{ name }}',
'{{ deployment_type }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a influxdb_instance resource, using stack-deploy.

/*+ update */
UPDATE awscc.timestream.influxdb_instances
SET PatchDocument = string('{{ {
"DbInstanceType": db_instance_type,
"DbStorageType": db_storage_type,
"AllocatedStorage": allocated_storage,
"DbParameterGroupIdentifier": db_parameter_group_identifier,
"Port": port,
"LogDeliveryConfiguration": log_delivery_configuration,
"DeploymentType": deployment_type,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.timestream.influxdb_instances
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

To operate on the influxdb_instances resource, the following permissions are required:

s3:ListBucket,
s3:GetBucketPolicy,
timestream-influxdb:GetDbInstance,
timestream-influxdb:ListDbInstances,
timestream-influxdb:CreateDbInstance,
timestream-influxdb:TagResource,
timestream-influxdb:ListTagsForResource,
ec2:DescribeSubnets,
ec2:DescribeVpcs,
ec2:DescribeNetworkInterfaces,
ec2:DescribeSecurityGroups,
ec2:CreateNetworkInterface,
iam:CreateServiceLinkedRole