timestream-influxdb
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 ke
- 01GitHub stars
- 3.4K
- 02Installs
- New
- 03Files scanned
- 16
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 ab3158a3fc3bb315… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
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. When the request already names the variant or asks for a comparison, answer directly for Amazon Timestream for InfluxDB instead of asking a clarifying question.
- 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:
- New workload → InfluxDB 3 Core (Enterprise for HA multi-node).
- Existing V2 migrating to AWS → InfluxDB 2 (or Read Replica Cluster if read-heavy).
- High cardinality (>10M series) or SQL → InfluxDB 3.
- 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-clusterwith the exact default parameter-group identifierInfluxDBV3Core. Do not usecreate-db-instance, and do not pass the V2-onlyallocatedStorage,dbStorageType,deploymentType,username,password,organization, orbucketfields. Core connects on port 8181. Before provisioning, verify Core's current Marketplace and licensing prerequisites in the Timestream for InfluxDB documentation and currentCreateDbClusterAPI 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
kmsKeyIdin 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
kmsKeyIdonly when the currentGetDbClusterresponse 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-clusterreturns, pollget-db-clusteruntil it reportsAVAILABLEor a terminal failure. Do not report creation complete or ask the user to take over polling while the cluster remainsCREATING. For a customer-managed key request, success also requires the returnedkmsKeyIdARN to match the requested key ARN; an absent value while the cluster is transitioning is unverified and MUST be checked again atAVAILABLE. - Retrieve the V3 initial-token secret by ARN: Run
aws timestream-influxdb get-db-cluster --db-cluster-id <id> --query influxAuthParametersSecretArn --output text, then pass the returned ARN toaws secretsmanager get-secret-value --secret-id <arn>. Never derive the secret identifier from a naming convention. V3 usesAuthorization: Bearer <token>(NOTToken). V2 usesAuthorization: Token <token>. - Connect to V3: Use the endpoint and
portreturned byget-db-cluster; the V3 default is 8181 (8086 is the V2 default). Write withPOST /api/v3/write_lp?db=<database>and query withPOST /api/v3/query_sqlorPOST /api/v3/query_influxql. Load the getting-started guide for request examples. Clusters are private by default: a client must reach the cluster's VPC unless the cluster was created withpubliclyAccessible, and even then its security group must allow inbound traffic on the port from the client. For connection errors, load the troubleshooting runbook. reboot-db-clustersupports--instance-idsfor targeting specific nodes. Before using it, verify the current maximum number of IDs and all request constraints in theRebootDbClusterAPI 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.
- Backup and restore: Follow the backup and restore contract in section 7.
- Maintenance windows: Set with
--maintenance-schedule '{"timezone":"<iana-zone>","preferredMaintenanceWindow":"ddd:HH:MM-ddd:HH:MM"}'. The API requires both fields. Useupdate-db-instance --identifierfor an instance andupdate-db-cluster --db-cluster-idfor a cluster, or pass the same value at create or restore time. The window must be 2–24 hours long and use an IANA time zone (notESTorGMT+5); propose a compliant window instead of submitting a shorter one. An emptypreferredMaintenanceWindowreturns scheduling to the service. Verify the result withget-db-instanceorget-db-cluster;nextMaintenanceTimeis always reported in UTC. Load monitoring operations for availability impact and deferral rules. --publicly-accessibleis 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 to InfluxDB 3
From LiveAnalytics (in maintenance mode):
- <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.
From InfluxDB 2 to InfluxDB 3: No in-place upgrade path exists. Export the data and re-ingest it into a new V3 cluster. Flux is not supported on V3, so rewrite queries in SQL or InfluxQL. V3 uses databases instead of buckets, and port 8181 instead of 8086.
Load the migration guide for the procedure.
5. Use Processing Engine plugins (V3 only)
InfluxDB 3 Processing Engine can use InfluxData certified plugins and customer-authored custom Python plugins when the retrieved Timestream for InfluxDB documentation confirms support for the selected engine edition.
- Certified plugins: Retrieve the managed catalog before naming an available plugin. Do not assert a fixed plugin count or infer managed-service availability from a general InfluxDB repository.
- Custom plugins: Configure the repository in a new, immutable DB parameter group, apply it with
update-db-cluster, and use only trigger syntax confirmed byinfluxdb3 create trigger --help. Follow the custom-plugin rules and checklist in the processing-engine guide. - Custom-plugin confirmation: You MUST obtain explicit user confirmation before
create-db-parameter-grouporupdate-db-cluster, after showing the cluster ID, Region, repository URL, and secret ARN and stating that the parameter group is permanent and that applying it runs a cluster maintenance action. Follow the processing-engine guide's confirmation and repository-token rules.
Load the processing-engine guide before providing plugin configuration or trigger guidance. For a custom-plugin request, you MUST also retrieve the linked custom-plugin documentation before composing the answer.
6. Monitor and operate
Load monitoring operations and metric discovery before giving metric, alarm, or maintenance-window guidance. Verify metric names and dimensions from the service documentation and the resource's CloudWatch telemetry before configuring alarms. Verify maintenance request shapes and service quotas in their API models rather than relying on embedded examples.
7. Back up and restore
Load backup and restore before giving any backup, snapshot, or restore guidance, and retrieve the backup and restore documentation for the engine variant it links.
Constraints:
- You MUST call customer-managed backups
DbBackups, never "snapshots." Distinguish them from service-managed backups, which require an AWS Support case to recover. - You MUST use the operations
create-db-backup,get-db-backup,list-db-backups,delete-db-backup, andrestore-from-db-backup, plus--db-backup-configurationson the create, update, and restore operations. Take enum values from the API model: the custom-cron type isCUSTOM_SCHEDULE. - You MUST offer
CONTINUOUSbackups and--restore-to-timepoint-in-time restore only for engine variants whose backup and restore guide documents them, and keep continuous retention within the limit that guide states. - You MUST pass the resource ID, not its name, as
--db-resource-id. Report a backup as restorable only afterget-db-backupreturnsCOMPLETED. - You MUST default to
--restore-mode NEW_RESOURCE. BeforeREPLACE_EXISTING, take an on-demand backup and wait forCOMPLETED, state that the resource becomes unavailable and its current data is replaced, and obtain explicit confirmation. Never useREPLACE_EXISTINGfor a cluster encrypted with a customer-managed KMS key. - You MUST obtain explicit confirmation before
delete-db-backup. Before deleting an instance or cluster, state that its automated backups are deleted unless--retain-automated-backupsis passed. - After a restore, poll the
restoredDbResourceIduntilAVAILABLEor a terminal failure, and give the user the new resource's endpoint and secret ARN.
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. A shell variable or command substitution such as
--password "$DB_PASSWORD"still puts the value in process arguments; pass V2 credentials with--cli-input-json file://from a mode-600 file, as shown in the getting-started guide. The same applies to a custom-plugin repository token: the user stores it in anInfluxDB-RepoToken-*secret, and you never accept it in chat or pass its value in a command. 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.
- Custom-plugin supply chain: Treat a plugin repository as executable production code. Require verified provenance, review and test the exact code, pin an owner-, repository-, and branch-scoped base URL on a protected branch, and authenticate and validate every HTTP-trigger request. Use a fine-grained, read-only, expiring repository token, rotate it, and attach the documented resource policies so only the
AWSServiceRoleForTimestreamInfluxDBservice-linked role can read the token secret and decrypt its customer-managed KMS key.
You MUST load and follow security best practices for every deployment, including development, experimentation, and production, before providing provisioning or operational guidance.
Additional Resources
- Timestream for InfluxDB Developer Guide
- Security in Timestream for InfluxDB
- Security best practices for Timestream for InfluxDB
- Timestream for InfluxDB Pricing
- InfluxDB 3 Documentation
- Schema Design Best Practices
- Processing Engine Documentation
- Use custom plugins with the Processing Engine
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:
- Read the artifact using
file_read. - Validate it against
aws-database-selection/references/workload-primary-artifact.schema.json. If malformed or unreadable, tell the user and proceed without it. - 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.
- 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_shapesormigration_contextdon't match that scope, emit weak backpressure per the handoff contract: suggestdynamodb-skillfor non-InfluxDB time-series on DynamoDB, or go back toaws-database-selectionif the dominant shape isn't time-series, then ask the user whether to go back or proceed anyway. Do not silently misuse the artifact. - 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
16- SKILL.md
5981770b8819.8 KB - references/backup-restore.md
af1036552a13.5 KB - references/encryption.md
30bed7799012.9 KB - references/getting-started.md
27ff7db14d21.7 KB - references/migration-guide.md
37558ddceb5.7 KB - references/monitoring-metrics.md
6f3f1206e62.0 KB - references/monitoring-operations.md
f05d65e68710.4 KB - references/processing-engine-guide.md
0dbb01ae1e15.5 KB - references/s3-vpc-endpoint-troubleshooting.md
cce66662621.7 KB - references/schema-design-guide.md
e0603e95ff4.4 KB - references/security-best-practices.md
b5924a64296.8 KB - references/troubleshooting-runbook.md
cda2fdcd1d6.3 KB - scripts/get_token.sh
b0a1b037831.9 KB - scripts/health_check.sh
ba08d59c743.2 KB - scripts/input_validator.py
df55d6f3091.7 KB - scripts/instance_types.py
cb898becef2.5 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from aws/agent-toolkit-for-aws8
Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query). Trigger for Aurora MySQL cluster operations, ACU sizing, I/O-Optimized storage, commitment pricing, or MySQL upgrade planning. Aurora MySQL uses fu
Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I/O-Opt
Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore (including the Harness managed agent loop). Applies when invoking models, setting up or migrating Knowledge Bases to Managed,
Runs quantum workflows on AWS / Amazon Braket: circuits and algorithms, QPU/device and ARN discovery, LocalSimulator, tasks, program sets, Hybrid Jobs, S3 results, pricing, account setup, and spending limits. Applies to quantum programs and execution, AHS, OpenQASM, pulse control, reservations, note
Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS/VPC/driver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration, slow-query diagnosis, major version upgrades (4.0->5.0->8.0), Well-Architected reviews (41-check wa_r
Creates and automates custom image builds with EC2 Image Builder - Linux, Windows, and macOS AMIs, and container images to ECR. Covers the build IAM role, Amazon-managed and custom components, image recipes, infrastructure and distribution configuration (launch templates, SSM parameters, other Regio
Activate when developers have latent caching needs: slow API responses, database read bottlenecks, DynamoDB throttling or cost, read/write-through caching, RDS/Aurora scaling pressure, Bedrock latency or cost, or adding a cache; activate when working with Redis, Valkey, Memcached, cache-aside patter
Builds, runs, debugs, and operates event-driven applications using EventBridge Event Bus - a managed, centrally governed publish/subscribe event bus that an organization can share across many teams and accounts. Applicable when workloads need event-driven architectures, decoupling, choreography, asy
Related devops skillsscan passed
Post-deploy canary monitoring. Use for: monitor after deploy, canary check. (gstack)
Guides building and deploying Atlassian Forge Teamwork Graph connector apps that ingest external data into Atlassian's Teamwork Graph, making it searchable in Rovo Search and surfaced in Rovo Chat. Use when the user wants to build a Forge connector, ingest external data into Atlassian, connect a thi
Implement comprehensive observability for service meshes including distributed tracing, metrics, and visualization. Use when setting up mesh monitoring, debugging latency issues, or implementing SLOs for service communication.
This skill should be used when the user asks about "Cloudflare Workers with Bun", "deploying Bun to Workers", "wrangler with Bun", "edge deployment", "Bun to Cloudflare", or building and deploying applications to Cloudflare Workers using Bun.
This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and outcome measurement for agent pipelines.
Configures best-practice, high-signal alerting policies for Cloud Run resources on Google Cloud (services, jobs, and worker pools) based on seasoned SRE practices. Use when analyzing, recommending, writing, or deploying Terraform PromQL alerting policies to monitor Cloud Run error rates (4xx/5xx), r