From 88960429911c5c95d19d52b19d62203684403f7e Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Thu, 31 Dec 2020 18:43:16 +0100 Subject: [PATCH] fix ci. --- .drone.yml | 4 ++-- serverless.yml | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 44a4ce0..24c14a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 commands: - apt-get update > /dev/null 2>&1 - apt-get -y install awscli zip > /dev/null 2>&1 diff --git a/serverless.yml b/serverless.yml index 8faa346..d88faa9 100644 --- a/serverless.yml +++ b/serverless.yml @@ -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: