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
CODE | |
--- | |
import json | |
import uuid | |
GET_RAW_PATH = "/getPerson" | |
CREATE_RAW_PATH = "/createPerson" | |
def lambda_handler(event, context): |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject" | |
], |
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
DemoHandler | |
--- | |
def lambda_handler(event, context): | |
print(event) | |
return "hello, world!!" | |
DemoAuthorizer | |
--- |
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
Steps (First Time Setup) | |
Start Docker | |
Configure Docker to allow file sharing | |
Run Get-NetIPAddress in Powershell and find your IP | |
Run the following command in Powershell with your ip/path selected: | |
docker run --name ubuntu-devevelopment -e HOST_IP=192.168.0.110 --expose 3000 -p 3000:3000 -v //c/Users/Dan/Desktop:/src -t -i tecnickcom/alldev /bin/bash | |
Steps (Every time after) | |
Start your container |
NewerOlder