Add lambda scrub functionality and remove vehicle lookup.
This commit is contained in:
@@ -11,6 +11,8 @@ stages:
|
||||
params:
|
||||
es_endpoint: https://insurtechtoolkit.com
|
||||
domain: es.imex.online
|
||||
es_user: Imex2
|
||||
es_password: Patrick
|
||||
beta:
|
||||
# Enables observability in the prod stage
|
||||
observability: false
|
||||
@@ -19,6 +21,8 @@ stages:
|
||||
params:
|
||||
es_endpoint: https://4284-79073.el-alt.com
|
||||
domain: beta.es.imex.online
|
||||
es_user: Imex2
|
||||
es_password: Patrick
|
||||
alpha:
|
||||
# Enables observability in the prod stage
|
||||
observability: false
|
||||
@@ -26,13 +30,17 @@ stages:
|
||||
params:
|
||||
es_endpoint: https://4284-79287.el-alt.com
|
||||
domain: alpha.es.imex.online
|
||||
es_user: Imex2
|
||||
es_password: Patrick
|
||||
dev:
|
||||
# Enables observability in the prod stage
|
||||
observability: false
|
||||
# Sepcify parameter values to be used in the prod stage
|
||||
params:
|
||||
es_endpoint: https://4284-79287.el-alt.com
|
||||
domain: alpha.es.imex.online
|
||||
domain: dev.es.imex.online
|
||||
es_user: Imex2
|
||||
es_password: Patrick
|
||||
|
||||
# params:
|
||||
# dev:
|
||||
@@ -53,21 +61,52 @@ provider:
|
||||
cors: true # Automatically configures CORS
|
||||
|
||||
functions:
|
||||
# Route 1: POST /scrub
|
||||
vehicleType:
|
||||
handler: src/handlers/vehicleTypes.handler
|
||||
events:
|
||||
- httpApi:
|
||||
path: /vehicleType
|
||||
method: post
|
||||
scrub:
|
||||
handler: src/handlers/scrub.handler
|
||||
environment:
|
||||
ES_ENDPOINT: ${param:es_endpoint}
|
||||
ES_USER: ${param:es_user}
|
||||
ES_PASSWORD: ${param:es_password}
|
||||
events:
|
||||
- httpApi:
|
||||
path: /scrub
|
||||
method: post
|
||||
# Route 1: POST /scrub
|
||||
emsupload:
|
||||
handler: src/handlers/emsupload.handler
|
||||
environment:
|
||||
ES_ENDPOINT: ${param:es_endpoint}
|
||||
UPLOAD_BUCKET_NAME: ${self:service}-uploads-${sls:stage}
|
||||
iamRoleStatements:
|
||||
- Effect: Allow
|
||||
Action:
|
||||
- s3:PutObject
|
||||
- s3:PutObjectAcl
|
||||
- s3:GetObject
|
||||
Resource:
|
||||
- arn:aws:s3:::${self:service}-uploads-${sls:stage}/*
|
||||
events:
|
||||
- httpApi:
|
||||
path: /emsupload
|
||||
method: post
|
||||
|
||||
resources:
|
||||
Resources:
|
||||
UploadBucket:
|
||||
Type: AWS::S3::Bucket
|
||||
Properties:
|
||||
BucketName: ${self:service}-uploads-${sls:stage}
|
||||
CorsConfiguration:
|
||||
CorsRules:
|
||||
- AllowedOrigins:
|
||||
- "*"
|
||||
AllowedMethods:
|
||||
- PUT
|
||||
- POST
|
||||
AllowedHeaders:
|
||||
- "*"
|
||||
|
||||
Reference in New Issue
Block a user