This repository has been archived by the owner on May 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathAlexaCloudTrailDesignTemplate
125 lines (125 loc) · 3 KB
/
AlexaCloudTrailDesignTemplate
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
115
116
117
118
119
120
121
122
123
124
125
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
"6ee0b0e3-9f0c-44e0-84de-81ad59fcf431": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": 440,
"y": 230
},
"z": 0,
"embeds": []
},
"1bc4b3ee-32fd-408b-9046-262eb15c5ca5": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": 150,
"y": 230
},
"z": 0,
"embeds": [],
"dependson": [
"6ee0b0e3-9f0c-44e0-84de-81ad59fcf431"
],
"isrelatedto": [
"6ee0b0e3-9f0c-44e0-84de-81ad59fcf431"
]
},
"bb393217-baa1-4525-8b83-b19bafbbaede": {
"source": {
"id": "1bc4b3ee-32fd-408b-9046-262eb15c5ca5"
},
"target": {
"id": "6ee0b0e3-9f0c-44e0-84de-81ad59fcf431"
},
"z": 1
}
}
},
"Resources": {
"AlexaIntegrationWithCloudTrail": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Handler": "index.handler",
"Role": {
"Fn::GetAtt": [
"ExecuteAlexaIntegrationWithCloudTrail",
"Arn"
]
},
"Code": {
"ZipFile": "AAA"
},
"Runtime": "nodejs4.3",
"Timeout": "60"
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "1bc4b3ee-32fd-408b-9046-262eb15c5ca5"
}
},
"DependsOn": [
"ExecuteAlexaIntegrationWithCloudTrail"
]
},
"ExecuteAlexaIntegrationWithCloudTrail": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"lambda.amazonaws.com"
]
},
"Action": [
"sts:AssumeRole"
]
}
]
},
"ManagedPolicyArns": [
"arn:aws:iam::aws:policy/AWSCloudTrailReadOnlyAccess",
"arn:aws:iam::aws:policy/AmazonSESFullAccess",
"arn:aws:iam::aws:policy/AmazonSNSFullAccess"
],
"Path": "/",
"Policies": [
{
"PolicyName": "root",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"ses:sendEmail"
],
"Resource": "*"
}
]
}
}
]
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "6ee0b0e3-9f0c-44e0-84de-81ad59fcf431"
}
}
}
}
}