Provides a Step Function State Machine resource
# ... resource "aws_sfn_state_machine" "sfn_state_machine" { name = "my-state-machine" role_arn = "${aws_iam_role.iam_for_sfn.arn}" definition = <<EOF { "Comment": "A Hello World example of the Amazon States Language using an AWS Lambda Function", "StartAt": "HelloWorld", "States": { "HelloWorld": { "Type": "Task", "Resource": "${aws_lambda_function.lambda.arn}", "End": true } } } EOF }
The following arguments are supported:
name
- (Required) The name of the state machine. definition
- (Required) The Amazon States Language definition of the state machine. role_arn
- (Required) The Amazon Resource Name (ARN) of the IAM role to use for this state machine. In addition to all arguments above, the following attributes are exported:
id
- The ARN of the state machine. creation_date
- The date the state machine was created. status
- The current status of the state machine. Either "ACTIVE" or "DELETING". State Machines can be imported using the arn
, e.g.
$ terraform import aws_sfn_state_machine.foo arn:aws:states:eu-west-1:123456789098:stateMachine:bar
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/sfn_state_machine.html