Generated banner for Timestream Influxdb
Generated logo for Timestream Influxdb

Timestream Influxdb

AWSOfficialPublished by AWS

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • Low risk
  • Has scripts

From the author

Retrieves authoritative guidance on Amazon Timestream for InfluxDB across its supported engine variants. Applicable to any InfluxDB-on-AWS request including engine variant and licensing selection, provisioning and IAM, encryption at rest (AWS-owned and customer-managed KMS keys, key policies, and key lifecycle), schema design (tags vs fields, cardinality, HTTP/sensor/metric data modeling), migration from LiveAnalytics, Processing Engine plugins, connectivity (database endpoints and private or public access), and write/query errors.
— the description by AWS

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides authoritative guidance for managing Amazon Timestream for InfluxDB across its supported engine variants (V2, V2 Read Replica, and V3). It covers provisioning, schema design, migration from LiveAnalytics, and operational tasks like encryption, connectivity, and troubleshooting. The skill emphasizes adherence to specific API models and documentation for each engine variant, ensuring that users follow correct procedures for IAM, networking, and resource lifecycle management.

What it does

  • Provides guidance on selecting and provisioning InfluxDB engine variants on AWS.
  • Offers instructions for schema design, including tag and field modeling.
  • Details procedures for migrating from LiveAnalytics to InfluxDB 3.
  • Provides operational commands for resource management using the AWS CLI.
  • Outlines security best practices for IAM, encryption at rest, and secret management.
  • Assists with troubleshooting connectivity, write, and query errors.

When to use it

  • When planning a new deployment of Amazon Timestream for InfluxDB.
  • When migrating existing LiveAnalytics workloads to InfluxDB 3.
  • When configuring encryption, IAM roles, or network access for database instances.
  • When troubleshooting operational issues or performance concerns related to schema design.
  • When needing to perform administrative tasks like backups or log delivery configuration.

Advantages

  • Ensures adherence to engine-specific API requirements and constraints.
  • Promotes secure practices for credential and key management.
  • Provides structured workflows for complex tasks like migration and provisioning.
  • Reduces configuration errors by enforcing version-specific parameter validation.

Usage examples

“How do I provision a new InfluxDB 3 cluster?”
The agent will guide you through the InfluxDB 3 Core creation contract, including the required parameter-group identifier and API fields, while ensuring you apply mandatory resource tags.
“What is the best way to design my schema for high cardinality data?”
The agent will explain the difference between tags and fields, advising you to use fields for high-cardinality data to maintain query performance.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/aws/timestream-influxdb/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip timestream-influxdb.zip -d .agents/skills

Documentation by AWS

Amazon Timestream for InfluxDB

Overview

Amazon Timestream for InfluxDB is a managed time-series database with engine variants and deployment types whose capabilities differ. Before comparing them, retrieve the Timestream for InfluxDB documentation and inspect the applicable Create API models. For an existing resource, read its GetDbInstance or GetDbCluster response. Use those sources to verify the engine variant, endpoint port, query languages, data model, authentication flow, deployment types, licensing, and Processing Engine support for the user's Region. Do not infer one engine variant's capabilities from another variant or from examples in this skill.

For new workloads, verify the supported engine variants and recommend InfluxDB 3 when the service documentation identifies it as an option. For existing V2 deployments, verify V2 support before advising whether to stay on V2 or migrate.

Advisory in nature: it recommends actions and provides the AWS CLI and API commands to carry them out (including mutations such as instance/cluster creation and tagging). It does not act autonomously — it executes mutations only in response to an explicit user request, never on its own initiative.

Tooling: The AWS MCP server is recommended for streamlined AWS API interactions but is not required. All examples use standard AWS CLI syntax and can run without MCP.

Common Tasks

1. Verify Dependencies

Before any guidance, confirm tooling and engine variant.

Constraints:

  • You MUST confirm which engine variant the user runs (V2, V2 Read Replica, or V3) before giving advice specific to that engine variant — APIs and defaults differ.

  • You MUST NOT mix V2 APIs (Flux, orgs, buckets, port 8086) with V3 APIs (SQL/InfluxQL, databases, tables, port 8181).

  • You MUST verify the AWS CLI (or call_aws) is available before provisioning guidance.

  • You MUST inspect the Create API and ask for all required parameters upfront, including engine variant, Region, VPC/subnet IDs, name, instance type, and a supported encryption choice. For production V3 workloads, verify customer-managed KMS key support in that API before recommending it for customer-controlled policy, rotation, revocation, and CloudTrail visibility. Collect an identifier in a form that API accepts.

Tool call examples:

aws timestream-influxdb list-db-instances --region us-east-1
aws timestream-influxdb list-db-clusters --region us-east-1
Resource tagging (always apply on resource creation)

When creating any cluster or instance (create-db-cluster, create-db-instance), ALWAYS include these tags:

--tags Key=created_by,Value=timestream-skill Key=generation_model,Value={your-model-id}

Example: --tags Key=created_by,Value=timestream-skill Key=generation_model,Value=claude-sonnet-4-20250514

Include these tags even if the user does not mention tagging, so that they can identify the resources created via this skill. If the user provides additional tags, append these to their tags rather than replacing them.

2. Select the right engine variant

Decision flow:

  1. New workload → InfluxDB 3 Core (Enterprise for HA multi-node).

  2. Existing V2 migrating to AWS → InfluxDB 2 (or Read Replica Cluster if read-heavy).

  3. High cardinality (>10M series) or SQL → InfluxDB 3.

  4. Need Processing Engine → InfluxDB 3.

Before providing provisioning guidance for InfluxDB 3 or a V2 Read Replica Cluster, you MUST load and follow the creation, licensing, IAM, and networking contracts for that engine variant in the getting-started guide. For V3 encryption choices, customer-managed KMS key policy, migration, or key lifecycle guidance, load encryption guidance.

Provisioning and operational contracts you MUST follow:

  • InfluxDB 3 Core creation contract: For a new V3 Core workload, use create-db-cluster with the exact default parameter-group identifier InfluxDBV3Core. Do not use create-db-instance, and do not pass the V2-only allocatedStorage, dbStorageType, deploymentType, username, password, organization, or bucket fields. Core connects on port 8181. Before provisioning, verify Core's current Marketplace and licensing prerequisites in the Timestream for InfluxDB documentation and current CreateDbCluster API model; never inherit requirements from V2, Read Replica, or Enterprise. If an installed CLI or SDK model does not expose the V3 Core creation contract, update that tooling; never fall back to the V2 creation operation or fields.

  • Core→Enterprise upgrade IS supported via AWS Console or AWS Support. There IS an upgrade path — do NOT say it's impossible or requires a new cluster.

  • Encryption mutability: Verify kmsKeyId in the Create and Update API models before asserting whether a key can change; follow "Choose the Key Before Creation" in encryption guidance.

  • Encryption scope and key loss: Retrieve the Data protection documentation and report only the details the user requests; follow "Response Scope" and "Existing Clusters and Key Loss" in encryption guidance.

  • Key verification: Confirm a specific customer-managed KMS key only by matching the returned ARN to the requested key ARN. Interpret an absent kmsKeyId only when the current GetDbCluster response documentation explicitly defines its semantics; never use absence to identify a specific customer-managed KMS key. Follow "Verify the Key" in encryption guidance.

  • Creation completion: After create-db-cluster returns, poll get-db-cluster until it reports AVAILABLE or a terminal failure. Do not report creation complete or ask the user to take over polling while the cluster remains CREATING. For a customer-managed key request, success also requires the returned kmsKeyId ARN to match the requested key ARN; an absent value while the cluster is transitioning is unverified and MUST be checked again at AVAILABLE.

  • Retrieve the V3 initial-token secret by ARN: Inspect the GetDbCluster output or API reference for the token-secret ARN field, then pass the returned ARN to AWS Secrets Manager. Never derive the secret identifier from a naming convention. V3 uses Authorization: Bearer <token> (NOT Token). V2 uses Authorization: Token <token>.

  • reboot-db-cluster supports --instance-ids for targeting specific nodes. Before using it, verify the current maximum number of IDs and all request constraints in the RebootDbCluster API model and Timestream for InfluxDB documentation. Do NOT say no reboot command exists or assume a fixed node-count limit.

  • Before asserting S3 log-delivery availability or configuration paths, verify the create and update API request parameters and the Timestream for InfluxDB log-delivery documentation. Use only the operations, service principal, and bucket-policy requirements those sources document.

  • Do NOT invent CloudWatch metric names. Load monitoring operations and metric discovery, then verify availability for the selected engine variant and deployment type. If unsure whether a metric exists, say so explicitly.

  • Before asserting backup or restore availability, verify the Timestream for InfluxDB CLI or SDK API model and the customer-managed backup and restore documentation. Confirm support by engine variant and Region for on-demand, scheduled, continuous, point-in-time, and self-service restore capabilities. Use DbBackup terminology for DbBackup resources, never "snapshot," and separately verify the accessibility and recovery path for service-managed snapshots.

  • --publicly-accessible is a supported option at instance/cluster creation time. Do NOT say the service is exclusively VPC-only — public access is an opt-in feature.

3. Design the schema (tags vs fields)

Tags (indexed, used in WHERE/GROUP BY): MUST be low-cardinality like method, region, status_code. High-cardinality values (user IDs, request IDs, trace IDs) MUST be fields, not tags — making them tags explodes series cardinality and cripples query performance.

Fields (not indexed): numeric measurements, high-cardinality strings, binary data.

InfluxDB 3 handles high cardinality better than V2, but tag design affects query performance. Load the schema-design guide for patterns including deduplication and retention.

4. Migrate from LiveAnalytics

LiveAnalytics is in maintenance mode. For migration to InfluxDB 3:

  • <1B records / <125GB: Use the certified LiveAnalytics Migration plugin with the migration client. Exports to S3 (Parquet), re-ingests into V3.

  • >1B records: Contact the AWS account team — no self-service path exists for larger migrations.

Load the migration guide for the procedure.

5. Use Processing Engine plugins (V3 only)

Before listing plugins or describing custom-plugin support, retrieve the certified plugin catalog and support statement from the Timestream for InfluxDB Processing Engine documentation or a documented catalog API. State only what the retrieved source confirms: do not assert a fixed plugin count, name a plugin absent from the retrieved catalog, or infer service availability from a general InfluxDB plugin repository. Load the processing-engine guide for verified trigger and configuration guidance.

6. Monitor and operate

Load monitoring operations and metric discovery before giving metric, alarm, maintenance, backup, or restore guidance. Verify metric names and dimensions from the service documentation and the resource's CloudWatch telemetry before configuring alarms. Verify maintenance request shapes, backup and restore capabilities, and service quotas in their respective API models rather than relying on embedded examples or fixed availability claims.

Troubleshooting

Confirm the engine variant and deployment/access type, then load the troubleshooting runbook for verified triage specific to that engine variant across connectivity, write/query, storage, replication, and S3 endpoint issues. Never mix V2 and V3 remediation or assert a cause before completing the runbook's verification steps.

Security Considerations

Apply these baseline controls in every environment:

  • Over-privileged IAM: Use least-privilege roles and remove temporary broad permissions immediately after activation.

  • Password or token exposure: Store the V2 initial password and V3 initial token in AWS Secrets Manager; never place them in source, logs, shell history, or literal command arguments. Rotate or replace each through the workflow documented for its engine variant, and issue a scoped application token per workload.

  • VPC misconfiguration: Prefer private networking and restrict every security-group rule to trusted CIDRs or security-group IDs; never allow 0.0.0.0/0.

  • Encryption gaps: Require encryption at rest and TLS in transit. Verify supported key options in the Data protection documentation and API model before selecting a customer-managed KMS key.

  • Audit gaps: Enable CloudTrail, supported service log delivery, and operational alarms. Protect CloudTrail S3 objects, CloudWatch Logs, and alarm topics with SSE-KMS, and enable CloudTrail log-file validation.

You MUST load and follow security best practices for every deployment, including development, experimentation, and production, before providing provisioning or operational guidance.

Additional Resources

Handoff from aws-database-selection

This skill can be invoked directly, or it can be entered from the aws-database-selection parent skill after that skill has run a requirements interview and produced a requirements.json artifact. When you see a backtick-wrapped path matching aws_dbs_requirements/*/requirements.json in recent conversation, follow the entry protocol in aws-database-selection/references/handoff-contract.md:

  1. Read the artifact using file_read.

  2. Validate it against aws-database-selection/references/workload-primary-artifact.schema.json. If malformed or unreadable, tell the user and proceed without it.

  3. Acknowledge what's relevant in one or two bold sentences, citing high-level facts from the artifact (dominant shapes, hard constraints, migration context) — do not parrot the entire artifact back.

  4. Scope-check: this skill is scoped to Amazon Timestream for InfluxDB (V2, V2 Read Replica, V3) — engine variant selection, schema design, migration from LiveAnalytics, Processing Engine plugins. If the artifact's workload_primaries.dominant_shapes or migration_context don't match that scope, emit weak backpressure per the handoff contract: suggest dynamodb-skill for non-InfluxDB time-series on DynamoDB, or go back to aws-database-selection if the dominant shape isn't time-series, then ask the user whether to go back or proceed anyway. Do not silently misuse the artifact.

  5. Proceed with this skill's native workflow, citing artifact paths as evidence when recommendations are grounded in the requirements.

All user-facing output from this skill follows the markdown-primitives-only formatting convention in the handoff contract: bold labels, backticks for paths and enum values, bullet lists for alternatives, no ASCII art or box-drawing characters.

Files

references/encryption.md

InfluxDB 3 Encryption

  • Choose the Key Before Creation

  • Response Scope

  • Key Requirements

  • Key Policy

  • Transport Security

  • Verify the Key

  • Monitor Key Changes

  • Existing Clusters and Key Loss

  • References

Response Scope

Answer only the topics the user requests and return the answer without narrating retrieval or planning. A question about configuring, changing, disabling, or deleting a key does not request an inventory of encrypted resources. Include encryption scope only when the user explicitly asks which resources the key encrypts. Do not add pricing, rotation, restore, or monitoring sections unless requested; distinguish documented key requirements from optional policy recommendations.

Complete every documentation and API-model retrieval required by the user's requested topics before drafting any part of the answer. A message that invokes a tool MUST NOT contain a partial answer. After all retrievals finish, return one complete, standalone final answer that covers every requested topic; do not rely on prose from an earlier tool-use turn. If another retrieval becomes necessary after drafting starts, perform it and then restate the complete answer after the tool result.

Choose the Key Before Creation

Before recommending an encryption choice, verify the default encryption behavior and kmsKeyId support in the Data protection in Timestream for InfluxDB documentation, CreateDbCluster API reference, and UpdateDbCluster API reference. Treat those sources as authoritative. When they document a customer-managed KMS key as a creation option, use the following pattern:

When the documentation offers both an AWS-owned default and a customer-managed KMS key, recommend the customer-managed option for production workloads that require customer-controlled policy, rotation, revocation, and CloudTrail visibility. Use the documented default only when the workload's security requirements accept its key-lifecycle controls.

aws timestream-influxdb create-db-cluster \
  --name <cluster-name> \
  --db-instance-type <instance-type> \
  --db-parameter-group-identifier <verified-v3-parameter-group-identifier> \
  --vpc-subnet-ids <subnet-1> <subnet-2> \
  --vpc-security-group-ids <security-group-id> \
  --kms-key-id <kms-key-arn> \
  --tags Key=created_by,Value=timestream-skill Key=generation_model,Value={your-model-id} \
  --region <region>

Verify the identifier forms accepted for kmsKeyId in the CreateDbCluster API reference. When a full key ARN is accepted, prefer it so the selected key is unambiguous.

Before naming encryption scope, you MUST retrieve the Data protection documentation. When AWS MCP is available, call aws___read_documentation with the documentation URL; otherwise use the client's official-document reader. A failed tool call, model memory, or this file's examples do not count as verification. Do not claim that retrieval succeeded when it did not. Include scope only when the user explicitly asks which resources the key encrypts. If retrieval fails, state that the scope could not be verified and omit those claims. When scope is requested, report each resource exactly as the retrieved source describes it; never infer one resource's behavior from another.

Before advising whether an existing cluster's key can be modified, verify the request parameters in the UpdateDbCluster API reference or the installed AWS SDK service model. When kmsKeyId is absent, treat it as creation-only: update-db-cluster cannot add, remove, or replace the key.

Key Requirements

Before recommending or validating a key, verify the supported key account, Region, key spec, key usage, origin, and multi-Region behavior in the Data protection in Timestream for InfluxDB documentation and the CreateDbCluster API reference. Treat those sources as authoritative; do not assume constraints documented here are permanent.

Before configuring rotation, verify that the selected key type supports automatic rotation and confirm the accepted custom rotation periods in the AWS KMS rotation documentation or API model. Follow organizational policy; use the following example only when the documentation accepts a 365-day period and no shorter period is required:

aws kms enable-key-rotation \
  --key-id <key-arn> \
  --rotation-period-in-days 365 \
  --region <region>

Key Policy

Add these statements to the key's existing policy. Do not replace its administrative statement. Replace the account, role, and Region placeholders with the identity that calls create-db-cluster.

Before presenting or adapting this template, retrieve the Data protection in Timestream for InfluxDB documentation and verify the principal, actions, kms:ViaService value, condition keys, and kms:GrantOperations values. Use aws___read_documentation when AWS MCP is available; otherwise use the client's official-document reader. If retrieval fails, disclose that the policy could not be verified and do not present the template as authoritative. If the retrieved policy differs from the template below, use the documented policy.

{
  "Sid": "Allow Timestream InfluxDB to use the key for resource allocations",
  "Effect": "Allow",
  "Principal": {
    "AWS": "arn:aws:iam::<account-id>:role/<caller-role>"
  },
  "Action": "kms:CreateGrant",
  "Resource": "*",
  "Condition": {
    "StringEquals": {
      "kms:ViaService": "timestream-influxdb.<region>.amazonaws.com"
    },
    "ForAllValues:StringEquals": {
      "kms:GrantOperations": [
        "Decrypt",
        "Encrypt",
        "GenerateDataKey",
        "GenerateDataKeyWithoutPlaintext",
        "ReEncryptFrom",
        "ReEncryptTo",
        "CreateGrant",
        "DescribeKey"
      ]
    },
    "Bool": {
      "kms:GrantIsForAWSResource": "true"
    }
  }
},
{
  "Sid": "Allow Timestream InfluxDB to describe the key for resource allocations",
  "Effect": "Allow",
  "Principal": {
    "AWS": "arn:aws:iam::<account-id>:role/<caller-role>"
  },
  "Action": "kms:DescribeKey",
  "Resource": "*",
  "Condition": {
    "StringEquals": {
      "kms:ViaService": "timestream-influxdb.<region>.amazonaws.com"
    }
  }
}

The kms:ViaService condition limits use to Timestream for InfluxDB in the selected Region. kms:GrantIsForAWSResource and kms:GrantOperations constrain the grants the service can create. The tested Timestream for InfluxDB resource-allocation flow requires CreateGrant in kms:GrantOperations so the service can create the subordinate resource grants used by the cluster. Retain it unless the service documentation and an end-to-end cluster-creation test establish a different policy.

Transport Security

Before recommending a custom-domain, load-balancer, response-header, or AWS WAF design, verify the Timestream for InfluxDB networking documentation and the linked Elastic Load Balancing, CloudFront, and AWS WAF integration documentation. Use only integrations those sources support.

Verify the endpoint transport requirements before advising. When the service documentation requires HTTPS, keep every connection to the InfluxDB endpoint encrypted and validate the service certificate. If a supported architecture exposes a custom domain through a load balancer, use an ACM-managed certificate for TLS termination instead of a self-managed certificate.

For browser-facing traffic through an Application Load Balancer, configure ALB response-header modification to emit Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, and a restrictive Content-Security-Policy. If CloudFront is also used, apply an equivalent CloudFront response headers policy. Choose values compatible with the InfluxDB UI and authorized embedding, and test API clients before deployment.

For an internet-facing load balancer, use AWS WAF only through an integration listed as supported by AWS WAF. If the integration documentation does not list Network Load Balancers, use an Application Load Balancer or another supported integration when Layer 7 protection is required.

Restrict load-balancer security-group ingress to trusted client CIDR ranges or security-group IDs. Never use 0.0.0.0/0.

Verify the Key

aws timestream-influxdb get-db-cluster \
  --db-cluster-id <cluster-id> \
  --query kmsKeyId \
  --output text \
  --region <region>

Retrieve the GetDbCluster response documentation before interpreting kmsKeyId. Positively verify a specific customer-managed KMS key by comparing the returned ARN with the requested key ARN: "A matching ARN confirms that the cluster uses the requested customer-managed KMS key." If the current documentation explicitly states that an absent kmsKeyId identifies AWS-owned default encryption, you may report that documented default-key status, but distinguish it from positive verification of a specific customer-managed KMS key. Never use absence to identify a specific customer-managed key or supply missing-field semantics that the retrieved source does not define.

Monitor Key Changes

Record AWS KMS management events with an AWS CloudTrail trail that delivers to CloudWatch Logs. Encrypt the CloudTrail S3 delivery bucket with SSE-KMS and enable CloudTrail log-file validation to detect modification or deletion. Encrypt the CloudWatch Logs log group with SSE-KMS using a customer-managed KMS key. Create metric filters and CloudWatch alarms scoped to the cluster's customer-managed KMS key ARN for DisableKey, ScheduleKeyDeletion, and RevokeGrant. Route notifications through an encrypted Amazon SNS topic. Confirm that every topic subscription delivers only to authorized security or operations personnel, and periodically audit subscriptions to prevent unauthorized recipients from receiving sensitive alarm data. Test the alarm in a non-production account.

Existing Clusters and Key Loss

Apply the UpdateDbCluster verification above before recommending a migration. When kmsKeyId is absent from that operation, move an existing cluster to a customer-managed KMS key by creating a new cluster with --kms-key-id, migrating through the standard write APIs, updating clients, and deleting the old cluster after validation. Before restoring a customer-managed backup, verify the restrictions in the RestoreFromDbBackup Boto3 reference and the customer-managed backup and restore documentation. When those sources prohibit REPLACE_EXISTING for a cluster encrypted with a customer-managed KMS key, use NEW_RESOURCE.

Before describing the effect of disabling, revoking access to, re-enabling, or deleting the key, you MUST retrieve the key-lifecycle behavior in the Data protection documentation. Use aws___read_documentation when AWS MCP is available; otherwise use the client's official-document reader. A failed tool call does not count as retrieval. Warn about availability and recoverability exactly as the retrieved source describes them. If retrieval fails, say that the effects could not be verified and do not infer them from generic AWS KMS behavior.

References

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server, Needs a command-line tool, Needs Python, Needs Node.js

Security

What our scanner noticed· Low risk

  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
AWS
Publisher
AWS (Official)
Source
aws/agent-toolkit-for-aws · skills/specialized-skills/database-skills/timestream-influxdb · commit 0a218f8
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • NOTICE (added by AutoGineer from NOTICE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by AWS or AWS.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download timestream-influxdb.zip