diff --git a/AWS/policy.py b/AWS/policy.py index fdd3571..ecd5bb1 100644 --- a/AWS/policy.py +++ b/AWS/policy.py @@ -40,7 +40,7 @@ class Policy: }, { "Effect": "Allow", - "Action": "iot:Publish", + "Action": ["iot:Publish", "iot:RetainPublish"], "Resource": [ "arn:aws:iot:{{REGION}}:{{ACCOUNT_ID}}:topic/thinedge/${iot:Connection.Thing.ThingName}/td", "arn:aws:iot:{{REGION}}:{{ACCOUNT_ID}}:topic/thinedge/${iot:Connection.Thing.ThingName}/td/*",