Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added python requirements config for setting up cryptography #4110

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cla-backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ Werkzeug==0.15.5
wrapt==1.11.2
zipp==3.15.0
markupsafe==2.0.1
cryptography==41.0.2
15 changes: 6 additions & 9 deletions cla-backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ package:
- '!package-lock.json'
- '!yarn.lock'
- '.serverless-wsgi'
- '.packages/**'

custom:
allowed_origins: ${file(./env.json):cla-allowed-origins-${sls:stage}, ssm:/cla-allowed-origins-${sls:stage}}
wsgi:
app: cla.routes.__hug_wsgi__
pythonBin: python
pythonRequirements: false
pythonRequirements:
dockerizePip: true
dockerImage: public.ecr.aws/sam/build-python3.7:latest
dockerRunCmdExtraArgs:
- '--platform'
- 'linux/amd64'
# Config for serverless-prune-plugin - remove all but the 10 most recent
# versions to avoid the "Code storage limit exceeded" error
prune:
Expand Down Expand Up @@ -598,8 +602,6 @@ functions:
method: ANY
path: v2/{proxy+}
cors: true
layers:
- Ref : CryptographyLayerLambdaLayer

salesforceprojects:
handler: cla.salesforce.get_projects
Expand Down Expand Up @@ -637,11 +639,6 @@ functions:
method: POST
path: v2/github/activity

layers:
CryptographyLayerLambdaLayer:
package:
individually: true
artifact: cryptography-layer.zip

resources:
Conditions:
Expand Down
Loading