-
Notifications
You must be signed in to change notification settings - Fork 6
/
aws-iot-policy.txt
61 lines (61 loc) · 2.51 KB
/
aws-iot-policy.txt
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
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Publish"
],
"Resource": [
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/$aws/things/<THING_NAME>/shadow/update",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/$aws/things/<THING_NAME>/shadow/get",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/takeoff",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/land",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/direction",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/rotate",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/flip"
]
},
{
"Effect": "Allow",
"Action": [
"iot:Receive"
],
"Resource": [
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/$aws/things/<THING_NAME>/shadow/get/accepted",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/$aws/things/<THING_NAME>/shadow/get/rejected",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/$aws/things/<THING_NAME>/shadow/update/accepted",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/$aws/things/<THING_NAME>/shadow/update/rejected",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/takeoff",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/land",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/direction",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/rotate",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topic/drone/flip"
]
},
{
"Effect": "Allow",
"Action": [
"iot:Subscribe"
],
"Resource": [
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/$aws/things/<THING_NAME>/shadow/get/accepted",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/$aws/things/<THING_NAME>/shadow/get/rejected",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/$aws/things/<THING_NAME>/shadow/update/accepted",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/$aws/things/<THING_NAME>/shadow/update/rejected",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/drone/takeoff",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/drone/land",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/drone/direction",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/drone/rotate",
"arn:aws:iot:<REGION>:<ACCOUNT_NUMBER>:topicfilter/drone/flip"
]
},
{
"Effect": "Allow",
"Action": [
"iot:Connect"
],
"Resource": "*"
}
]
}