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

    MPU6050 accelerometer on Windows 10 Raspberry 2
    Easy
    • 82
    • 1

    Protip

    Using MPU6050 accelerometer data on Windows 10 Raspberry 2 to control model's roll and pitch with DirectX12XTK and ImGui

    Forgot Something: The Calliope-Remembrall will Remind You
    Easy
    • 256
    • 2

    Work in progress

    This is an utterly useless project since this magical object is quite useless. Everybody forgets stuff, naturally.

    Break Your Heart - IoT Project - Blinky - 2 LEDs
    Easy
    • 240
    • 3

    Full instructions

    The Blinky project with two LEDs.

    Break your heart - IoT Project - IoT Blocky
    Easy
    • 711
    • 4

    Protip

    Use this project to control the LEDs on the Raspberry Pi Sense HAT.

    Windows Remote Arduino (Windows Remote Arduino Experience)
    Easy
    • 80
    • 0

    Protip

    Break your heart - The Windows Remote Arduino Experience allows you to blinking LEDs on the Arduino

    Add projectSign up / Login