This Terraform module provisions:
- Step Functions State Machine
- IAM Role
- IAM Policy
name- Name that should be used for the Step Functions State Machine and related resourcesdefinition- State machine defition that should be used by Step Functionstags- Tags that should be applied to all resources in this modulepolicy_statements- IAM Policy Statements that should be applied to the Step Functions State Machine
module "sfn" {
source = "git::https://github.com/albumprinter/infra-terraform-modules.git//modules/aws/sfn_state_machine?ref="
name = "${var.project_name}Lambda"
definition = "..."
policy_statements = [
{
"Effect" : "Deny",
"Action" : [
"s3:ListBucket"
],
"Resource" : ["*"]
}
]
tags = var.tags
}sfn_state_machineaws_iam_roleaws_iam_policy