PARALLAX

stepfunctions_state_machine

Manage AWS Step Functions state machines

Collection: community.aws

Full Name: community.aws.stepfunctions_state_machine

Synopsis

Manage AWS Step Functions state machines

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
definitionjson
endpoint_urlstr
namestryes
profilestr
purge_tagsbooltrue
regionstr
role_arnstr
secret_keystr
session_tokenstr
statestrpresent
tagsdict
validate_certsbooltrue

Example

yaml
# Create a new AWS Step Functions state machine
- name: Setup HelloWorld state machine
  community.aws.stepfunctions_state_machine:
    name: "HelloWorldStateMachine"
    definition: "{{ lookup('file','state_machine.json') }}"
    role_arn: arn:aws:iam::123456789012:role/service-role/invokeLambdaStepFunctionsRole
    tags:
        project: helloWorld

# Update an existing state machine
- name: Change IAM Role and tags of HelloWorld state machine
  community.aws.stepfunctions_state_machine:
    name: HelloWorldStateMachine
    definition: "{{ lookup('file','state_machine.json') }}"
    role_arn: arn:aws:iam::123456789012:role/service-role/anotherStepFunctionsRole
    tags:
        otherTag: aDifferentTag

# Remove the AWS Step Functions state machine
- name: Delete HelloWorld state machine
  community.aws.stepfunctions_state_machine:
    name: HelloWorldStateMachine
    state: absent
Search
    ↑ ↓ move↵ openesc close