AWS Step Functions Activity
This page shows how to write Terraform and CloudFormation for Step Functions Activity and write them securely.
aws_sfn_activity (Terraform)
The Activity in Step Functions can be configured in Terraform with the resource name aws_sfn_activity
. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_sfn_activity" "dmrpp_ecs_task" {
name = var.name
tags = local.default_tags
Parameters
-
creation_date
optional computed - string -
id
optional computed - string -
name
required - string -
tags
optional - map from string to string
Explanation in Terraform Registry
Provides a Step Function Activity resource
AWS::StepFunctions::Activity (CloudFormation)
The Activity in StepFunctions can be configured in CloudFormation with the resource name AWS::StepFunctions::Activity
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
Explanation in CloudFormation Registry
An activity is a task that you write in any programming language and host on any machine that has access to AWS Step Functions. Activities must poll Step Functions using the
GetActivityTask
API action and respond usingSendTask*
API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity.For information about creating an activity, see Creating an Activity State Machine in the AWS Step Functions Developer Guide and CreateActivity in the AWS Step Functions API Reference.
Frequently asked questions
What is AWS Step Functions Activity?
AWS Step Functions Activity is a resource for Step Functions of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Step Functions Activity?
For Terraform, the ghrcdaac/dmrpp-generator source code example is useful. See the Terraform Example section for further details.