From 1c9a9ec88c3ea46b2e0e02ac7c85031dfaa5ab5e Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 18 Jul 2023 09:58:08 +0100 Subject: [PATCH] downgraded crypography again --- backend/requirements/base.txt | 2 +- backend/serverless.yml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/requirements/base.txt b/backend/requirements/base.txt index f6abbe71..33748cea 100644 --- a/backend/requirements/base.txt +++ b/backend/requirements/base.txt @@ -15,4 +15,4 @@ PyJWT==2.7.0 python-dotenv==1.0.0 python-jose==3.3.0 PyYAML==6.0 -cryptography==41.0.2 \ No newline at end of file +cryptography==37.0.4 \ No newline at end of file diff --git a/backend/serverless.yml b/backend/serverless.yml index 99348095..54d5f030 100644 --- a/backend/serverless.yml +++ b/backend/serverless.yml @@ -4,8 +4,6 @@ provider: name: aws runtime: python3.10 region: eu-west-2 - # arm64 causes issues with pycryptography - TODO: fix this so we can use arm64 - # architecture: arm64 architecture: x86_64 environment: API_KEY: ${env:API_KEY} @@ -14,6 +12,7 @@ provider: PLAN_TRIGGER_BUCKET: ${env:PLAN_TRIGGER_BUCKET} DOMAIN_NAME: ${env:DOMAIN_NAME} + package: individually: true include: @@ -30,6 +29,7 @@ custom: useDocker: true dockerSsh: true fileName: requirements/base.txt + # dockerRunCmdExtraArgs: ['--platform', 'linux/amd64'] customDomain: domainName: api.${self:provider.environment.DOMAIN_NAME} createRoute53Record: true @@ -38,9 +38,7 @@ custom: functions: app: handler: app.main.handler - # layers: - # - ${ssm:/${self:provider.environment.ENVIRONMENT}/LambdaDependenciesLayerArn} events: - http: path: /{proxy+} - method: ANY + method: ANY \ No newline at end of file