Help us shape the future of Go! Take the 2026 Go Developer Survey

dynamo

command
v1.4.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

README ΒΆ

πŸ“¦ DynamoDB Plugin

The DynamoDB Plugin enables Heimdall to run read-only PartiQL queries against AWS DynamoDB tables. It securely connects using AWS credentials or an optional assumed IAM role, supports pagination, and returns structured query results.

πŸ”’ Read-Only: This plugin only supports data retrieval via PartiQL β€” no writes or modifications.


🧩 Plugin Overview

  • Plugin Name: dynamo
  • Execution Mode: Sync
  • Use Case: Querying DynamoDB tables using PartiQL from within Heimdall workflows

βš™οΈ Defining a DynamoDB Command

πŸ“ Command Definition
- name: dynamo-0.0.1
  status: active
  plugin: dynamo
  version: 0.0.1
  description: Read data using PartiQL
  tags:
    - type:dynamodb
  cluster_tags:
    - type:dynamodb
πŸ–₯️ Cluster Definition (AWS Authentication)
- name: dynamo-0.0.1
  status: active
  version: 0.0.1
  description: AWS DynamoDB
  context:
    role_arn: arn:aws:iam::123456789012:role/HeimdallDynamoQueryRole
  tags:
    - type:dynamodb
    - data:prod
  • role_arn is optional. If provided, Heimdall will assume this IAM role to authenticate requests.

πŸš€ Submitting a DynamoDB Job

Define the PartiQL query and optional result limit in the job context:

{
  "name": "list-items-job",
  "version": "0.0.1",
  "command_criteria": ["type:dynamo"],
  "cluster_criteria": ["data:prod"],
  "context": {
    "query": "SELECT * FROM my_table WHERE category = 'books'",
    "limit": 100
  }
}

πŸ“Š Returning Job Results

The plugin paginates through query results automatically, returning a structured output like:

{
  "columns": [
    {"name": "id", "type": "string"},
    {"name": "category", "type": "string"},
    {"name": "price", "type": "float"}
  ],
  "data": [
    ["123", "books", 12.99],
    ["124", "books", 15.50]
  ]
}

Retrieve results via:

GET /api/v1/job/<job_id>/result

🧠 Best Practices

  • Use IAM roles with least privilege for security.
  • Test queries in AWS console or CLI before running via Heimdall.
  • Avoid large result sets by leveraging the limit parameter.
  • Validate job input to prevent malformed PartiQL queries.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL