Updated readme with new instructions on utilizing serverless IaC to build and deploy, updated pygeo config, updated serverless config so wsgi builds correctly

This commit is contained in:
christophersbarrett
2021-01-11 15:08:44 -08:00
parent fc6fd9d86f
commit f0f421d6ae
3 changed files with 33 additions and 11 deletions
+15 -8
View File
@@ -31,19 +31,27 @@ service: pygeoapi
provider:
name: aws
runtime: python3.6
runtime: python3.8
# region: us-west-2
# rolePermissionsBoundary: <arn for permission boundary>
# deploymentBucket: <name to deployment bucket>
# role: <arn for pre-existing lambda execution role>
# vpc:
# subnetIds:
# - subnet-id1
# - subnet-id2
# securityGroupIds:
# - sg-id1
# you can define service wide environment variables here
# environment:
# variable1: value1
plugins:
- serverless-python-requirements
- serverless-wsgi
custom:
wsgi:
app: pygeoapi.flask_app.APP
packRequirements: true
pythonBin: python3
app: pygeoapi/flask_app.APP
packRequirements: false
textMimeTypes:
- application/ld+json
functions:
@@ -51,6 +59,5 @@ functions:
handler: wsgi_handler.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'
environment:
PYGEOAPI_CONFIG: pygeoapi-config.yml
PYGEOAPI_CONFIG: pygeoapi-serverless-config.yml