I keep receiving a 403 when trying to connect via Websocket to AWS IoT. I have a Cognito federated pool setup, which connects fine and returns credentials. It's after that step when I update the websocket credentials that I start getting 403's.
I've done the following steps:
- I've setup IoT and have a certificate and policy setup.
- I created a Cognito Federated Identity Pool that allows unauthenticated users.
- The unauthenticated role has full access to IoT (policy below)
Here's the unauthenticated role policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"mobileanalytics:PutEvents",
"cognito-sync:*",
"iot:*"
],
"Resource": [
"*"
]
}
]
}
Any ideas? Am I missing a step?