Step Functions State Machine
A Step Functions state machine (STANDARD or EXPRESS) with a least-privilege execution role, a managed CloudWatch log group, X-Ray tracing, and encryption at rest - working out of the box from a single name.
Verification
Live-testedReally deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.
Conformance
- Static validation (fmt · validate · tflint)
- Security scan clean (Checkov)
- Plan test superseded by live test
Provenance
- SHA-256 checksum
- Cosign signature
Functional
- Live-tested - applied, verified, destroyed
Last verified 2026-06-30 · how we verify
Verify this download
cosign · sha-256Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.
# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub
# 2. This module's Sigstore bundle
curl -o aws-step-functions-1.0.0.sigstore.json \
https://www.iac-bazaar.com/api/artifacts/aws-step-functions/signature
# 3. Verify the tarball you downloaded
cosign verify-blob \
--key cosign.pub \
--bundle aws-step-functions-1.0.0.sigstore.json \
aws-step-functions-1.0.0.tar.gz
# → Verified OK
# 4. (optional) confirm the checksum too
echo "0ba390a4316e2ce54b7ad9fb4ff0780c9fddaa21c406ed8a1448c50e77e7ecc0 aws-step-functions-1.0.0.tar.gz" | sha256sum -cUse it from the registry
terraform · opentofumodule "step_functions" {
source = "www.iac-bazaar.com/iac-bazaar/aws-step-functions/aws"
version = "1.0.0"
}Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.
Inputs & outputs
Create a free account to read this module's contract
The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.
A free account sees the contract of every Free module. This one is Premium, so its contract unlocks when you buy it.
Documentation
aws-step-functions
AWS Step Functions state machine (STANDARD or EXPRESS) with a least-privilege
execution role, an explicitly managed CloudWatch log group, X-Ray tracing, and
encryption at rest. Works with Terraform and OpenTofu (>= 1.6), AWS
provider >= 6.0, < 7.0.
The module stands up end-to-end with a single input (name): it ships a trivial
single Pass-state Amazon States Language (ASL) definition so you get a working,
verifiable state machine out of the box. Supply your own definition (and
policy_json / policy_arns for the services your tasks call) for real
workflows.
Secure defaults:
- Encryption at rest always on — AWS-owned key by default, or your own KMS
key via
encryption_type = "CUSTOMER_MANAGED_KMS_KEY"+kms_key_id. - Execution logging on — a managed CloudWatch log group (30-day retention)
with the role's CloudWatch Logs delivery permissions wired before the state
machine is created (a missing-permissions create failure is the classic
Step Functions footgun). Execution input/output payloads are excluded from
logs by default (
log_include_execution_data = false). - X-Ray tracing on — free until executions emit traces; the created role gets only the X-Ray write permissions it needs.
- Least-privilege role — created automatically (unless you pass
role_arn) with a confused-deputy guard (aws:SourceAccount) on the trust policy and no task permissions until you grant them.
Security notes
- The CloudWatch Logs delivery permissions (
logs:CreateLogDelivery, …) must use a"*"resource — these are account-level delivery APIs that do not support resource scoping. Actions are limited to exactly what Step Functions logging requires. - Keep
log_include_execution_data = falseunless you are certain execution payloads contain no secrets/PII. - For STANDARD workflows holding sensitive data, set
encryption_type = "CUSTOMER_MANAGED_KMS_KEY"to control the key and its rotation/audit trail.
Requirements
- Terraform or OpenTofu
>= 1.6 hashicorp/aws>= 6.0, < 7.0
License
Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).
Usage code & full reference unlock after purchase
The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence - shown here and bundled in the download.
- Usage
- Inputs
- Outputs
Related modules
ECS Fargate Service
Full Fargate stack: cluster, task definition, service with ALB integration, autoscaling, and Cloud Map discovery.
Lambda Function (Packaged & Wired)
Lambda with execution role, log group, triggers, aliases, and zip/container packaging handled.
Azure Functions App
Function app (Flex Consumption or Premium) with storage, Application Insights, managed identity and VNet integration.
Cloud Run Function (gen2)
Event-driven or HTTP gen2 function with source upload, dedicated runtime SA and Eventarc trigger wiring.
Cloudflare Workers Platform
Worker with KV/R2/D1 bindings, routes, custom domain, and secrets - full edge app scaffold.
Functions Application
Serverless Fn application with functions, provisioned concurrency, invoke logging and Events-rule trigger wiring.