stepfunctions_state_machine_execution
Start or stop execution of an AWS Step Functions state machine
Collection: community.aws
Full Name: community.aws.stepfunctions_state_machine_execution
Synopsis
Start or stop execution of an AWS Step Functions state machine
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| action | str | start | ||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| cause | str | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| error | str | |||
| execution_arn | str | |||
| execution_input | json | map[] | ||
| name | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state_machine_arn | str | |||
| validate_certs | bool | true |
Example
yaml
- name: Start an execution of a state machine
community.aws.stepfunctions_state_machine_execution:
name: an_execution_name
execution_input: '{ "IsHelloWorldExample": true }'
state_machine_arn: "arn:aws:states:us-west-2:123456789012:stateMachine:HelloWorldStateMachine"
- name: Stop an execution of a state machine
community.aws.stepfunctions_state_machine_execution:
action: stop
execution_arn: "arn:aws:states:us-west-2:123456789012:execution:HelloWorldStateMachineCopy:a1e8e2b5-5dfe-d40e-d9e3-6201061047c8"
cause: "cause of task failure"
error: "error code of the failure"