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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| definition | json | |||
| endpoint_url | str | |||
| name | str | yes | ||
| profile | str | |||
| purge_tags | bool | true | ||
| region | str | |||
| role_arn | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| tags | dict | |||
| validate_certs | bool | true |
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