-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
44 lines (39 loc) · 812 Bytes
/
main.tf
File metadata and controls
44 lines (39 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "ap-northeast-1"
}
terraform {
backend "s3" {
bucket = "stepfunction-tf-state"
key = "test.tfstate"
region = "ap-northeast-1"
}
}
resource "aws_sfn_state_machine" "sfn_state_machine" {
definition = templatefile(
"definition.tftpl",
{
wait_sec = 5
}
)
name = "HelloWorld"
role_arn = "arn:aws:iam::XXX:role/service-role/StepFunctions-HelloWorld-role"
tags = {}
tags_all = {}
type = "STANDARD"
logging_configuration {
include_execution_data = false
level = "OFF"
}
tracing_configuration {
enabled = false
}
}