wip
This commit is contained in:
@@ -23,7 +23,7 @@ Globals:
|
||||
Architectures:
|
||||
- x86_64
|
||||
Layers:
|
||||
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:26
|
||||
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:28
|
||||
Environment:
|
||||
Variables:
|
||||
TZ: America/Sao_Paulo
|
||||
@@ -39,6 +39,8 @@ Globals:
|
||||
ELASTIC_AUTH_PASS: "{{resolve:ssm:/betaeducacao/elastic/auth_pass/str}}"
|
||||
KONVIVA_API_URL: https://saladeaula.digital
|
||||
KONVIVA_SECRET_KEY: "{{resolve:ssm:/betaeducacao/konviva/secret_key/str}}"
|
||||
MEILISEARCH_HOST: https://meili.vps.eduseg.com.br
|
||||
MEILISEARCH_API_KEY: "{{resolve:ssm:/saladeaula/meili_api_key}}"
|
||||
|
||||
Resources:
|
||||
HttpLog:
|
||||
@@ -53,6 +55,8 @@ Resources:
|
||||
AllowOrigins: ["*"]
|
||||
AllowMethods: [GET, POST, PUT, DELETE, PATCH, OPTIONS]
|
||||
AllowHeaders: [Content-Type, X-Requested-With, Authorization, X-Tenant]
|
||||
AllowCredentials: false
|
||||
MaxAge: 600
|
||||
Auth:
|
||||
DefaultAuthorizer: LambdaRequestAuthorizer
|
||||
Authorizers:
|
||||
@@ -63,6 +67,7 @@ Resources:
|
||||
EnableSimpleResponses: true
|
||||
Identity:
|
||||
Headers: [Authorization]
|
||||
ReauthorizeEvery: 300
|
||||
|
||||
HttpApiFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
@@ -76,6 +81,14 @@ Resources:
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref CourseTable
|
||||
Events:
|
||||
Preflight:
|
||||
Type: HttpApi
|
||||
Properties:
|
||||
Path: /{proxy+}
|
||||
Method: OPTIONS
|
||||
ApiId: !Ref HttpApi
|
||||
Auth:
|
||||
Authorizer: NONE
|
||||
AnyRequest:
|
||||
Type: HttpApi
|
||||
Properties:
|
||||
|
||||
Reference in New Issue
Block a user