Skip to content

Commit 79dee01

Browse files
committed
converted to using go modules for build/dependencies
1 parent e876efd commit 79dee01

File tree

6 files changed

+22
-28
lines changed

6 files changed

+22
-28
lines changed

.gitmodules

Lines changed: 0 additions & 6 deletions
This file was deleted.

Readme.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,7 @@ The basic steps for usage are as follows:
5959
log.Fatal(http.ListenAndServe(":8080", handler))
6060
}
6161
```
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:
8063

8164
```Makefile
8265
build:
@@ -85,15 +68,15 @@ The basic steps for usage are as follows:
8568
pack:
8669
zip handler.zip handler
8770
```
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)
8972

9073
```bash
9174
aws lambda create-function \
9275
--function-name hello-world-api \
9376
--runtime go1.x --handler handler --zip-file fileb://handler.zip \
9477
--role arn:aws:iam::${AWS_ACCOUNT_ID}:role/lambda_basic_execution
9578
```
96-
6. Create your API Gateway API:
79+
5. Create your API Gateway API:
9780

9881
```bash
9982
aws apigateway import-rest-api \

go.mod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
)

go.sum

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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=

vendor/github.com/aws/aws-lambda-go

Lines changed: 0 additions & 1 deletion
This file was deleted.

vendor/github.com/eawsy/aws-lambda-go

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)