Things used in this project

Software apps and online services:
Microsoft Visual Studio Code
As long as your IDE(s) support Python and JSON you are fine. Multi file is preferred.
Python
Screen%20shot%202015 07 20%20at%206.10.26%20pm
Amazon Web Services AWS Lambda
Dp image kit 02
Amazon Alexa Alexa Skills Kit

Code

input.jsonJSON
The input event for your function. Create it yourself or copy it from the testing pane in the developer portal.
{}
output.jsonJSON
This is how the result should look if you change nothing.
{"status": "Complete", "value": "Value"}
test.pyPython
This script runs your function as if it is in Lambda.
import json
import lambda_function as program

with open('input.json') as data_file:    
    data = json.load(data_file)
    with open('output.json', 'w') as result_file:
        (json.dump(program.lambda_handler(data, {}), result_file))
lambda_function.pyPython
You should replace this with your own code.
import json
try:
    with open('vars.json') as data_file:    
        process = json.load(data_file)
except:
    print ("failed")
    pass

def lambda_handler(event, context):
    return {"status": 'Complete', "value": process['env']['name']}
vars.jsonJSON
If using environment variables you must edit this file.
{"env": {"name": "Value"}}

Credits

Big engram isns8txm7l
Elvis Wolcott

Self-taught app developer and hardware developer, currently working on making the Random Rumble Generator and other voice based solutions

Replications

Did you replicate this project? Share it!

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Are you in tune?
Easy
  • 146
  • 2

Work in progress

There are many ways/apps/tools to tune an ukulele. Now there is one more,

Android App with Xamarin on Mac
Easy
  • 405
  • 3

Full instructions

A quick Android app development with Xamarin in C# on Mac.

Read/Write Data from/to USB Thumb Drive on Windows IoT Core
Easy
  • 1,900
  • 16

Protip

Work around universal apps that block you from reading/writing data files.

Windows Remote Arduino
Easy
  • 126,755
  • 300

Full instructions

Turn an LED on and off using Windows Remote Arduino.

Hands-on-lab IoT Weather Station using Windows 10
Easy
  • 178,043
  • 271

Full instructions

This example demonstrates how to leverage the power of Windows 10 IoT Core, and create a weather station using the Sparkfun weather shield.

Rover
Easy
  • 34,709
  • 163

Full instructions

Simple to get started yet infinitely expandable.

Add projectSign up / Login
Respect project