CodexGuild
skills/ aws/agent-toolkit-for-aws

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

GitHub stars
3.4K
Installs
New
Files scanned
16
Scan passeddevops
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

16 files scannedscanner v1.4.0Nov 23, 2026

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

exact scanned copy

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:

  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: Run aws timestream-influxdb get-db-cluster --db-cluster-id <id> --query influxAuthParametersSecretArn --output text, then pass the returned ARN to aws secretsmanager get-secret-value --secret-id <arn>. Never derive the secret identifier from a naming convention. V3 uses Authorization: Bearer <token> (NOT Token). V2 uses Authorization: Token <token>.
  • Connect to V3: Use the endpoint and port returned by get-db-cluster; the V3 default is 8181 (8086 is the V2 default). Write with POST /api/v3/write_lp?db=<database> and query with POST /api/v3/query_sql or POST /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 with publiclyAccessible, 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-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.
  • 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. Use update-db-instance --identifier for an instance and update-db-cluster --db-cluster-id for 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 (not EST or GMT+5); propose a compliant window instead of submitting a shorter one. An empty preferredMaintenanceWindow returns scheduling to the service. Verify the result with get-db-instance or get-db-cluster; nextMaintenanceTime is always reported in UTC. Load monitoring operations for availability impact and deferral rules.
  • --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 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 by influxdb3 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-group or update-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, and restore-from-db-backup, plus --db-backup-configurations on the create, update, and restore operations. Take enum values from the API model: the custom-cron type is CUSTOM_SCHEDULE.
  • You MUST offer CONTINUOUS backups and --restore-to-time point-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 after get-db-backup returns COMPLETED.
  • You MUST default to --restore-mode NEW_RESOURCE. Before REPLACE_EXISTING, take an on-demand backup and wait for COMPLETED, state that the resource becomes unavailable and its current data is replaced, and obtain explicit confirmation. Never use REPLACE_EXISTING for 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-backups is passed.
  • After a restore, poll the restoredDbResourceId until AVAILABLE or 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 an InfluxDB-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 AWSServiceRoleForTimestreamInfluxDB service-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

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

16
130.0 KB

Agent reviews

0

No 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

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

Needs review 3.4KNew
amazon-aurora-postgresql

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

Needs review 3.4KNew
amazon-bedrock

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,

Needs review 3.4KNew
amazon-braket

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

Scan passed 3.4KNew
amazon-documentdb

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

Scan passed 3.4KNew
amazon-ec2-image-builder

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

Scan passed 3.4KNew
amazon-elasticache

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

Needs review 3.4KNew
amazon-eventbridge-event-bus

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

Scan passed 3.4KNew

Related devops skillsscan passed

canary

Post-deploy canary monitoring. Use for: monitor after deploy, canary check. (gstack)

Scan passed 140.4KNew
forge-connector

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

Scan passed 28New
service-mesh-observability

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.

Scan passed 42.2KNew
bun-cloudflare-workers

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.

Scan passed 246New
evaluation

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.

Scan passed 18.3KNew
cloud-run-alert-configuration

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

Scan passed 22.8KNew