Skip to content

Commit

Permalink
Adding secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
malikparvez committed Jul 12, 2024
1 parent 522c9fd commit f5e5020
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ jobs:
run: npm ci

- name: Deploy Lambda function
env:
AWS_ACCESS_KEY: ${{ secrets.MY_AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.MY_AWS_SECRET_KEY }}
OPENSEARCH_HOST: ${{ secrets.OPENSEARCH_HOST }}
OPENSEARCH_USERNAME: ${{ secrets.OPENSEARCH_USERNAME }}
OPENSEARCH_PASSWORD: ${{ secrets.OPENSEARCH_PASSWORD }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
run: |
npx serverless deploy --stage dev --verbose
npx serverless info --stage dev
10 changes: 5 additions & 5 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ provider:
runtime: python3.11
environment:
PYTHONPATH: ./src
MY_AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
MY_AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
OPENSEARCH_HOST: ${{ secrets.OPENSEARCH_HOST }}
OPENSEARCH_USERNAME: ${{ secrets.OPENSEARCH_USERNAME }}
OPENSEARCH_PASSWORD: ${{ secrets.OPENSEARCH_PASSWORD }}
MY_AWS_ACCESS_KEY: ${env:MY_AWS_ACCESS_KEY_ID}
MY_AWS_SECRET_KEY: ${env:MY_AWS_SECRET_ACCESS_KEY}
OPENSEARCH_HOST: ${env:OPENSEARCH_HOST}
OPENSEARCH_USERNAME: ${env:OPENSEARCH_USERNAME}
OPENSEARCH_PASSWORD: ${env:OPENSEARCH_PASSWORD}
region: ap-south-1
iam:
role:
Expand Down

0 comments on commit f5e5020

Please sign in to comment.