ood-stepfunctions-adapter

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 Imported by: 0

README

ood-stepfunctions-adapter

CI Go Report Card codecov Go Reference

An Open OnDemand compute adapter that translates OOD job submissions into AWS Step Functions executions.

Commands

Command Description
submit Read a JSON job spec from stdin and start a Step Functions execution; prints the execution ARN
status <execution-arn> Return OOD-normalized job status as JSON
delete <execution-arn> Stop a running execution (maps to OOD job cancel)
info <execution-arn> Print full execution detail as JSON

Global Flags

Flag Default Description
--region us-east-1 AWS region
--state-machine-arn (required) ARN of the target state machine (can also be set per job via state_machine_arn in the job spec)

Job Spec (stdin for submit)

{
  "state_machine_arn": "arn:aws:states:us-east-1:123456789012:stateMachine:MyWorkflow",
  "job_name": "my-run-001",
  "input": {
    "sample": "sample-42",
    "reference": "hg38"
  }
}

state_machine_arn in the job spec is overridden by --state-machine-arn if both are provided.

OOD Cluster YAML

v2:
  metadata:
    title: "AWS Step Functions"
  login:
    host: localhost
  job:
    adapter: linux_host
    submit_host: localhost
    submit:
      launcher: /usr/local/bin/ood-stepfunctions-adapter submit --region us-east-1 --state-machine-arn arn:aws:states:us-east-1:123456789012:stateMachine:MyWorkflow
    status:
      launcher: /usr/local/bin/ood-stepfunctions-adapter status
    delete:
      launcher: /usr/local/bin/ood-stepfunctions-adapter delete

AWS Credentials

The adapter uses the standard AWS credential chain (environment variables, ~/.aws/credentials, IAM instance profile, etc.). The IAM principal needs states:StartExecution, states:DescribeExecution, and states:StopExecution on the target state machine.

License

MIT © 2026 Scott Friedman

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
awscfg
Package awscfg builds the AWS config option set shared by the adapter commands.
Package awscfg builds the AWS config option set shared by the adapter commands.
ood
Package ood defines the OOD job spec types shared across adapters.
Package ood defines the OOD job spec types shared across adapters.
stepfunc
Package stepfunc wraps the AWS Step Functions API for the OOD adapter.
Package stepfunc wraps the AWS Step Functions API for the OOD adapter.

Jump to

Keyboard shortcuts

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