This project was built with the following requirements in mind:
- RaspberryPi 3
- Espressif ESP32 DevKitC
- AWS account with access to AWS IoT
- Windows or OSX based machine
- Python 2.7
| /* eslint-disable func-names */ | |
| /* eslint quote-props: ["error", "consistent"]*/ | |
| /** | |
| * This sample demonstrates a simple skill built with the Amazon Alexa Skills | |
| * nodejs skill development kit. | |
| * This sample supports multiple lauguages. (en-US, en-GB, de-DE). | |
| * The Intent Schema, Custom Slots and Sample Utterances for this skill, as well | |
| * as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact | |
| **/ |
| aws_s3_presign(){ | |
| if [ -z "$1" ]; then | |
| echo "1st arg is the key for the s3 object to presign, and may not be empty" | |
| return | |
| fi | |
| if [ -z "$2" ]; then | |
| echo "2nd arg is the number of days that the presigned url is valid for, and may not be empty" | |
| return | |
| fi |
| StaticAssetsS3Bucket: | |
| Type: AWS::S3::Bucket | |
| Properties: | |
| BucketName: my-encrypted-bucket | |
| BucketEncryption: | |
| ServerSideEncryptionConfiguration: | |
| - ServerSideEncryptionByDefault: | |
| SSEAlgorithm: AES256 | |
| VersioningConfiguration: | |
| Status: Enabled |
| 'use strict' | |
| /* This list may be incomplete or outdated! It may be best to integrate with an external service to obtain these values */ | |
| const eu_country_codes = ['BE','BG','CZ','DK','DE','EE','IE','EL','ES','FR','HR','IT','CY','LV','LT','LU','HU','MT','NL','AT','PL','PT','RO','SI','SK','FI','SE','UK'] | |
| const us_origin_domain = 'ec2-54-166-49-18.compute-1.amazonaws.com' | |
| const eu_origin_domain = 'ec2-34-244-9-66.eu-west-1.compute.amazonaws.com' | |
| /* This is an origin request function */ | |
| exports.handler = (event, context, callback) => { |
These instructions are derived directly from https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html
Flash Raspian to your SD card using Etcher.
Connect to the RaspberryPi using a monitor, keyboard and mouse to perform the initial setup.
These instructions are derived directly from https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html
Install and configure the AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/installing.html
Install the boto3 library:
| ''' | |
| /* | |
| * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"). | |
| * You may not use this file except in compliance with the License. | |
| * A copy of the License is located at | |
| * | |
| * http://aws.amazon.com/apache2.0 | |
| * |
The steps used in this demo have been replaced with the following repo: https://github.com/dave-malone/react-amplified-demo
| ''' | |
| /* | |
| * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"). | |
| * You may not use this file except in compliance with the License. | |
| * A copy of the License is located at | |
| * | |
| * http://aws.amazon.com/apache2.0 | |
| * |