1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Can you please share your template if possible here, did you try something like below? example ** "ThingTypeName": "FAIL",**
{
"Resources": {
"thing": {
"Type": "AWS::IoT::Thing",
"Properties": {
"ThingName": {
"Ref": "ThingName"
},
"AttributePayload": {
"version": "v1",
"serialNumber": {
"Ref": "SerialNumber"
}
},
"ThingTypeName": "lightBulb-versionA",
"ThingGroups": [
"v1-lightbulbs",
{
"Ref": "Location"
}
]
},
"OverrideSettings": {
"AttributePayload": "MERGE",
** "ThingTypeName": "FAIL",**
"ThingGroups": "DO_NOTHING"
}
},
"policy": {
"Type": "AWS::IoT::Policy",
"Properties": {
"PolicyDocument": "{ \"Version\": \"2012-10-17\", \"Statement\": [{ \"Effect\": \"Allow\", \"Action\":[\"iot:Publish\"], \"Resource\": [\"arn:aws:iot:us-east-1:123456789012:topic/foo/bar\"] }] }"
}
}
}
}
the JSON is the default in the fleet provisioning by default.
I tried that option but it doesn't work because is thingtypename is different than thingname. It seems the correct way to do it is with a lambda function