@ -26,7 +26,7 @@ steps:
commands:
- go get -u github.com/pressly/goose/...
- cd migrations/postgres
- goose postgres "$(DB_CONNECT)" up
- goose postgres '$DB_CONNECT' up
- name: backend-deploy
image: node:14.14.0
@ -56,7 +56,7 @@ steps:
DB_DRIVER:
from_secret: db_driver
DB_CONNECT:
from:secret: db_connect
from_secret: db_connect
- apt-get update > /dev/null 2>&1
- apt-get -y install awscli zip > /dev/null 2>&1
@ -27,7 +27,11 @@ functions:
include:
- ./build/api/handler
events:
- http: ANY /api/{proxy+}
- http:
method: ANY
path: /api/{proxy+}
authorizer:
arn: arn:aws:cognito-idp:eu-north-1:670816140020:userpool/eu-north-1_09uLRfo6H
timeout: 30
package: