Provides a Step Function Activity resource
resource "aws_sfn_activity" "sfn_activity" {
name = "my-activity"
}
This resource supports the following arguments:
name
- (Required) The name of the activity to create.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
id
- The Amazon Resource Name (ARN) that identifies the created activity.name
- The name of the activity.creation_date
- The date the activity was created.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import activities using the arn
. For example:
import {
to = aws_sfn_activity.foo
id = "arn:aws:states:eu-west-1:123456789098:activity:bar"
}
Using terraform import
, import activities using the arn
. For example:
% terraform import aws_sfn_activity.foo arn:aws:states:eu-west-1:123456789098:activity:bar