Skip to content

Instantly share code, notes, and snippets.

@sebastianrothbucher
Created April 9, 2024 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianrothbucher/002a724e8340dbb3da39af42a83b508d to your computer and use it in GitHub Desktop.
Save sebastianrothbucher/002a724e8340dbb3da39af42a83b508d to your computer and use it in GitHub Desktop.
IoTcore simple policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Publish",
"iot:Receive",
"iot:PublishRetain"
],
"Resource": "arn:aws:iot:eu-central-1:525869301127:topic/test/one"
},
{
"Effect": "Allow",
"Action": "iot:Subscribe",
"Resource": "arn:aws:iot:eu-central-1:525869301127:topicfilter/test/one"
},
{
"Effect": "Allow",
"Action": "iot:Connect",
"Resource": [
"arn:aws:iot:eu-central-1:525869301127:client/test",
"arn:aws:iot:eu-central-1:525869301127:client/testcli"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment