Skip to content

Commit

Permalink
Merge pull request #4110 from nickmango/bug/crpt-python-req
Browse files Browse the repository at this point in the history
Added python requirements config for setting up cryptography
  • Loading branch information
nickmango authored Aug 29, 2023
2 parents 8c6a741 + 55560a7 commit 10dcf0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
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

0 comments on commit 10dcf0a

Please sign in to comment.