Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWS Iot 1-Click Event - CloudFormation template (YAML)
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
MyClickFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: python2.7
# ...
# all the other properties here
# ...
MyIoT1ClickProject:
Type: AWS::IoT1Click::Project
Properties:
ProjectName: MyProjectName
PlacementTemplate:
DeviceTemplates:
myTemplateName:
DeviceType: button
CallbackOverrides:
onClickCallback: !GetAtt MyClickFunction.Arn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.