Skip to content

Commit

Permalink
Setup hangout bot for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
col committed Oct 17, 2018
1 parent 987ae54 commit 13ff618
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
12 changes: 0 additions & 12 deletions Gopkg.lock

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

3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ build:
dep ensure
GOOS=linux go build -o bin/telegram_lambda cmd/telegram/lambda/main.go
GOOS=linux go build -o bin/telegram_http cmd/telegram/http/main.go
GOOS=linux go build -o bin/hangout_lambda cmd/hangout/lambda/main.go

test:
ENVIRONMENT=test go test $(UNIT_TEST_PACKAGES) -race

deploy: build
serverless deploy
serverless deploy
File renamed without changes.
8 changes: 7 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ functions:
parameters:
paths:
token: true
hangout:
handler: bin/hangout_lambda
events:
- http:
path: hangout
method: post

# Define function environment variables here
# environment:
Expand Down Expand Up @@ -104,4 +110,4 @@ resources:
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: ${self:provider.environment.ROLLCALL_RESPONSE_TABLE}
TableName: ${self:provider.environment.ROLLCALL_RESPONSE_TABLE}

0 comments on commit 13ff618

Please sign in to comment.