Skip to content

Commit

Permalink
fix: running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw01 committed Mar 21, 2021
1 parent fc3913b commit 33f37a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Deploy to AWS
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_NAME: ${{ secrets.DB_NAME }}
uses: serverless/github-action@master
with:
args: deploy --stage staging
7 changes: 7 additions & 0 deletions .idea/dataSources.xml

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

8 changes: 3 additions & 5 deletions serverless-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ provider:
stage: dev
memorySize: 512
runtime: nodejs12.x
iam:
role: LambdaRole
lambdaHashingVersion: 20201221
apiGateway:
shouldStartNameWithService: true
Expand Down Expand Up @@ -43,9 +41,9 @@ custom:
Fn::GetAtt: [ PostgreSqlRDSInstance, Endpoint.Address ]
DB_PORT:
Fn::GetAtt: [ PostgreSqlRDSInstance, Endpoint.Port ]
DB_NAME: ${param:DB_NAME}
DB_USERNAME: ${param:DB_USERNAME}
DB_PASSWORD: ${param:DB_PASSWORD}
DB_NAME: ${env:DB_NAME, 'dives'}
DB_USERNAME: ${env:DB_USERNAME, 'dives'}
DB_PASSWORD: ${env:DB_PASSWORD, 'dives'}
S3_BUCKET: dives-backend-data

s3:
Expand Down

0 comments on commit 33f37a3

Please sign in to comment.