{ "Parameters": {}, "Resources": { "certificate": { "Type": "AWS::IoT::Certificate", "Properties": { "CertificateId": { "Ref": "AWS::IoT::Certificate::Id" }, "Status": "Active" } }, "policy": { "Type": "AWS::IoT::Policy", "Properties": { "PolicyName": "${self:service}-${opt:stage, self:provider.stage, 'dev'}-iot-policy" } }, "thing": { "Type": "AWS::IoT::Thing", "Properties": { "ThingName": "IotDevice" } } } }