-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathstate_machine_with_encryption_configuration.json
More file actions
114 lines (114 loc) · 2.78 KB
/
Copy pathstate_machine_with_encryption_configuration.json
File metadata and controls
114 lines (114 loc) · 2.78 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"Resources": {
"StateMachine": {
"Properties": {
"DefinitionString": {
"Fn::Join": [
"\n",
[
"{",
" \"Comment\": \"A Hello World example of the Amazon States Language using Pass states\",",
" \"StartAt\": \"Hello\",",
" \"States\": {",
" \"Hello\": {",
" \"End\": true,",
" \"Result\": \"Hello\",",
" \"Type\": \"Pass\"",
" }",
" }",
"}"
]
]
},
"EncryptionConfiguration": {
"KmsDataKeyReusePeriodSeconds": 300,
"KmsKeyId": {
"Fn::GetAtt": [
"StateMachineKmsKey",
"Arn"
]
},
"Type": "CUSTOMER_MANAGED_KMS_KEY"
},
"RoleArn": {
"Fn::GetAtt": [
"StateMachineRole",
"Arn"
]
},
"StateMachineName": "MyStateMachineWithEncryption",
"StateMachineType": "STANDARD",
"Tags": [
{
"Key": "stateMachine:createdBy",
"Value": "SAM"
}
]
},
"Type": "AWS::StepFunctions::StateMachine"
},
"StateMachineKmsKey": {
"Properties": {
"KeyPolicy": {
"Statement": [
{
"Action": "kms:*",
"Effect": "Allow",
"Principal": {
"AWS": {
"Fn::Sub": "arn:${AWS::Partition}:iam::${AWS::AccountId}:root"
}
},
"Resource": "*"
}
],
"Version": "2012-10-17"
}
},
"Type": "AWS::KMS::Key"
},
"StateMachineRole": {
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": [
"sts:AssumeRole"
],
"Effect": "Allow",
"Principal": {
"Service": [
"states.amazonaws.com"
]
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": [],
"Policies": [
{
"PolicyDocument": {
"Statement": [
{
"Action": "*",
"Effect": "Deny",
"Resource": "*"
}
],
"Version": "2012-10-17"
},
"PolicyName": "StateMachineRolePolicy0"
}
],
"Tags": [
{
"Key": "stateMachine:createdBy",
"Value": "SAM"
}
]
},
"Type": "AWS::IAM::Role"
}
}
}