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.
Idaws.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.
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.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all influxdb_instances in a region.

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,
log_delivery_configuration,
status,
arn,
name,
availability_zone,
secondary_availability_zone,
endpoint,
influx_auth_parameters_secret_arn,
id,
deployment_type,
tags
FROM aws.timestream.influxdb_instances
WHERE region = 'us-east-1';

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,
log_delivery_configuration,
status,
arn,
name,
availability_zone,
secondary_availability_zone,
endpoint,
influx_auth_parameters_secret_arn,
id,
deployment_type,
tags
FROM aws.timestream.influxdb_instances
WHERE region = 'us-east-1' AND data__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 aws.timestream.influxdb_instances (
Username,
Password,
Organization,
Bucket,
DbInstanceType,
VpcSubnetIds,
VpcSecurityGroupIds,
PubliclyAccessible,
DbStorageType,
AllocatedStorage,
DbParameterGroupIdentifier,
LogDeliveryConfiguration,
Name,
DeploymentType,
Tags,
region
)
SELECT
'{{ Username }}',
'{{ Password }}',
'{{ Organization }}',
'{{ Bucket }}',
'{{ DbInstanceType }}',
'{{ VpcSubnetIds }}',
'{{ VpcSecurityGroupIds }}',
'{{ PubliclyAccessible }}',
'{{ DbStorageType }}',
'{{ AllocatedStorage }}',
'{{ DbParameterGroupIdentifier }}',
'{{ LogDeliveryConfiguration }}',
'{{ Name }}',
'{{ DeploymentType }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.timestream.influxdb_instances
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

timestream-influxdb:GetDbInstance,
timestream-influxdb:ListTagsForResource

Update

s3:ListBucket,
s3:GetBucketPolicy,
timestream-influxdb:GetDbInstance,
timestream-influxdb:ListDbInstances,
timestream-influxdb:UpdateDbInstance,
timestream-influxdb:TagResource,
timestream-influxdb:UntagResource,
timestream-influxdb:ListTagsForResource

Delete

timestream-influxdb:GetDbInstance,
timestream-influxdb:ListDbInstances,
timestream-influxdb:DeleteDbInstance

List

timestream-influxdb:ListDbInstances