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

Contact

Replications

Did you replicate this project? Share it!

I made one

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

Give feedback

Comments

Similar projects you might like

    Winforms+Lattepanda=Control Everything With Your Mouse!
    Easy
    • 1,015
    • 6

    Protip

    If you use other things instead of the LED, then you can use your mouse to control everything!!

    One Small Step For a Yedi, One Giant Leap for Mankind
    Easy
    • 165
    • 4

    Work in progress

    Counting your steps with the Calliope Mini. Hearing the Star Wars theme is always a huge motivator.

    Cortana Skills and Bot Framework on Raspberry Pi
    Easy
    • 369
    • 2

    Protip

    Using Bot Framework on Raspberry Pi, using Cortana Skills to Echo sent message.

    Microsoft Workshop Setup Guide
    Easy
    • 953
    • 9

    Protip

    A collection of screencasts for setting up your laptop for the Hackster/Microsoft IoT Roadshow events.

    Sorting Hat: Circuit Playground Express Starter Project
    Easy
    • 85
    • 2

    Protip

    Which Hogwarts House do you belong in? A quick first project for this beginner-friendly board from Adafruit.

    The Factory at Exhibition - 4.0 and beyond - [Part 2]
    Easy
    • 737
    • 6

    Protip

    PowerBerry/POWER-KI on 9 Raspberry PI3 and 10 LattePanda with Win10 to make a true 4.0 Control System for a factory that worked at BIE2017.

    Add projectSign up / Login