@uhuru/awsiot-thing-creator
Advanced tools
Comparing version 1.0.1-beta.39 to 1.0.1-beta.40
@@ -14,3 +14,3 @@ { | ||
"Action": "iot:Connect", | ||
"Resource": "*" | ||
"Resource": "arn:aws:iot:%region%:%accountId%:client/${iot:Connection.Thing.ThingName}" | ||
}, | ||
@@ -23,3 +23,6 @@ { | ||
], | ||
"Resource": "arn:aws:iot:%region%:%accountId%:topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/*" | ||
"Resource": [ | ||
"arn:aws:iot:%region%:%accountId%:topic/$aws/things/${iot:Connection.Thing.ThingName}/shadow/*", | ||
"arn:aws:iot:%region%:%accountId%:topic/enebular/things/${iot:Connection.Thing.ThingName}/*" | ||
] | ||
}, | ||
@@ -43,5 +46,8 @@ { | ||
"Action": "iot:Subscribe", | ||
"Resource": "arn:aws:iot:%region%:%accountId%:topicfilter/$aws/things/${iot:Connection.Thing.ThingName}/shadow/*" | ||
"Resource": [ | ||
"arn:aws:iot:%region%:%accountId%:topicfilter/$aws/things/${iot:Connection.Thing.ThingName}/shadow/*", | ||
"arn:aws:iot:%region%:%accountId%:topicfilter/enebular/things/${iot:Connection.Thing.ThingName}/*" | ||
] | ||
} | ||
] | ||
} |
@@ -359,3 +359,3 @@ "use strict"; | ||
.replace(/%region%/g, this.awsIotRegion); | ||
console.log(`~~~~~~~~~~~~~~ policyDocument ~~~~~~~~~~~~~~`, policyDocument); | ||
console.log(`Policy document:`, policyDocument); | ||
const createPolicyCmd = new client_iot_1.CreatePolicyCommand({ | ||
@@ -362,0 +362,0 @@ policyName, |
{ | ||
"name": "@uhuru/awsiot-thing-creator", | ||
"version": "1.0.1-beta.39", | ||
"version": "1.0.1-beta.40", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
58454
675