This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let MIC = require('mic-sdk-js').default | |
let AWSMqtt = require('aws-mqtt-client').default | |
const CONFIG = { | |
// Username of the Cognito user | |
username: '', | |
// Password of the Cognito user | |
password: '', | |
// The application endpoint | |
app: 'startiot.mic.telenorconnexion.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MIC = require('mic-sdk-js').default; | |
var AWSMqtt = require('aws-mqtt-client'); | |
var api = new MIC; | |
// Init by providing the endpoint for your app | |
api.init('startiot.mic.telenorconnexion.com') | |
.then((manifest, credentials) => { | |
// Login a user | |
api.login('USERNAME', '*********') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
Resources: | |
# User Pool | |
MyUserPool: | |
Type: AWS::Cognito::UserPool | |
Properties: | |
AdminCreateUserConfig: | |
AllowAdminCreateUserOnly: False | |
InviteMessageTemplate: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
Resources: | |
MyTableResource: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
TableName: my-table-name | |
ProvisionedThroughput: | |
ReadCapacityUnits: 5 | |
WriteCapacityUnits: 5 | |
AttributeDefinitions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
functions: | |
TriggerFunc: | |
handler: handlers.main | |
resources: | |
Resources: | |
# Bucket 'TriggeredBucket' | |
TriggeredBucket: | |
Type: AWS::S3::Bucket |