AWS FOTA, creating a more restrictive aws iot policy.

I'm trying to restrict the policy used to ensure that the AWS FOTA sample is working. The "allow everything" policy that is stated that it can be used for test purposes seems like something that shouldn't be used except for just testing. How can I write a more restrictive policy? What topics and similar are the sample using? (One topic used is "$aws/hings/<thing name>/jobs/$next/get" but that is not the only one)

Regards

Ulf

Related