Skip to content
This repository has been archived by the owner on Mar 6, 2022. It is now read-only.

Commit

Permalink
Replace python shim with native Go function now that it's supported, …
Browse files Browse the repository at this point in the history
…update dependencies
  • Loading branch information
dan-v committed Jan 16, 2018
1 parent ff598c4 commit 8f0910f
Show file tree
Hide file tree
Showing 2,474 changed files with 691,602 additions and 172,576 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fabric.properties

/awslambdaproxy
data/lambda.zip
data/lambda/awslambdaproxy-lambda
data/lambda/main
bindata.go
build/
.DS_Store
93 changes: 46 additions & 47 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: osx linux

lambda:
GOOS=linux GOARCH=amd64 go build -o data/lambda/awslambdaproxy-lambda ./lambda
GOOS=linux GOARCH=amd64 go build -o data/lambda/main ./lambda
zip -jr data/lambda data/lambda

bindata: lambda
Expand Down
2 changes: 0 additions & 2 deletions cmd/awslambdaproxy/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,5 @@ func initConfig() {
// If a config file is found, read it in.
if err := viper.ReadInConfig(); err == nil {
fmt.Println("Using config file:", viper.ConfigFileUsed())
} else {
fmt.Println("Invalid config file", err)
}
}
27 changes: 0 additions & 27 deletions data/lambda/main.py

This file was deleted.

4 changes: 2 additions & 2 deletions infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

const (
lambdaFunctionName = "awslambdaproxy"
lambdaFunctionHandler = "main.handler"
lambdaFunctionRuntime = "python2.7"
lambdaFunctionHandler = "main"
lambdaFunctionRuntime = "go1.x"
lambdaFunctionIamRole = "awslambdaproxy-role"
lambdaFunctionIamRolePolicyName = "awslambdaproxy-role-policy"
lambdaFunctionZipLocation = "data/lambda.zip"
Expand Down
Loading

0 comments on commit 8f0910f

Please sign in to comment.