File tree 6 files changed +22
-28
lines changed
6 files changed +22
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -59,24 +59,7 @@ The basic steps for usage are as follows:
59
59
log.Fatal(http.ListenAndServe(":8080", handler))
60
60
}
61
61
` ` `
62
- 3 . create your main () for your eawsy:
63
-
64
- ` ` ` go
65
- package main
66
-
67
- import (
68
- "github.com/danapsimer/aws-lambda-shim/examples/helloWorld/hello"
69
- "github.com/danapsimer/aws-lambda-shim/aws"
70
- )
71
-
72
- func init() {
73
- shim.NewHttpHandlerShim(hello.InitHandler)
74
- }
75
-
76
- func main() {
77
- }
78
- ` ` `
79
- 4 . Make your executable:
62
+ 3 . Make your executable:
80
63
81
64
` ` ` Makefile
82
65
build:
@@ -85,15 +68,15 @@ The basic steps for usage are as follows:
85
68
pack:
86
69
zip handler.zip handler
87
70
` ` `
88
- 5 . Create your lambda function in AWS : (in the directory your handler was built)
71
+ 4 . Create your lambda function in AWS : (in the directory your handler was built)
89
72
90
73
` ` ` bash
91
74
aws lambda create-function \
92
75
--function-name hello-world-api \
93
76
--runtime go1.x --handler handler --zip-file fileb://handler.zip \
94
77
--role arn:aws:iam::${AWS_ACCOUNT_ID}:role/lambda_basic_execution
95
78
` ` `
96
- 6 . Create your API Gateway API :
79
+ 5 . Create your API Gateway API :
97
80
98
81
` ` ` bash
99
82
aws apigateway import-rest-api \
Original file line number Diff line number Diff line change
1
+ module github.com/danapsimer/aws-api-to-lambda-shim
2
+
3
+ require (
4
+ github.com/aws/aws-lambda-go v1.6.0
5
+ github.com/davecgh/go-spew v1.1.1 // indirect
6
+ github.com/eawsy/aws-lambda-go v0.0.0-20170302222045-d67ea54b7d71
7
+ github.com/pmezard/go-difflib v1.0.0 // indirect
8
+ github.com/stretchr/testify v1.2.2 // indirect
9
+ )
Original file line number Diff line number Diff line change
1
+ github.com/aws/aws-lambda-go v1.6.0 h1:T+u/g79zPKw1oJM7xYhvpq7i4Sjc0iVsXZUaqRVVSOg =
2
+ github.com/aws/aws-lambda-go v1.6.0 /go.mod h1:zUsUQhAUjYzR8AuduJPCfhBuKWUaDbQiPOG+ouzmE1A =
3
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
4
+ github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
5
+ github.com/eawsy/aws-lambda-go v0.0.0-20170302222045-d67ea54b7d71 h1:6rRqlAsc66muRtZS+5i9j0NS63/sYWWqWcHh02cWWzs =
6
+ github.com/eawsy/aws-lambda-go v0.0.0-20170302222045-d67ea54b7d71 /go.mod h1:4gET2E5JmpmYq9yc/RxellpusH7Zf/nYG/yUCeXkZ9w =
7
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
8
+ github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
9
+ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w =
10
+ github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments