Skip to content

Instantly share code, notes, and snippets.

@alexcasalboni
Last active July 1, 2019 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcasalboni/3a1858c0ed4cb1d60a1b2470638238da to your computer and use it in GitHub Desktop.
Save alexcasalboni/3a1858c0ed4cb1d60a1b2470638238da to your computer and use it in GitHub Desktop.
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