first commit
This commit is contained in:
79
serverless.yml
Normal file
79
serverless.yml
Normal file
@@ -0,0 +1,79 @@
|
||||
#org: WDI
|
||||
service: minglarDev
|
||||
|
||||
# plugins:
|
||||
# - serverless-domain-manager
|
||||
# custom:
|
||||
# customDomain:
|
||||
# domainName: sandbox.tanamicapital.com
|
||||
# basePath: ''
|
||||
# stage: dev
|
||||
# createRoute53Record: true
|
||||
# endpointType: 'edge'
|
||||
provider:
|
||||
name: aws
|
||||
versionFunctions: false
|
||||
runtime: nodejs20.x
|
||||
region: me-south-1
|
||||
environment:
|
||||
DATABASE_URL: ${env:DATABASE_URL}
|
||||
BY_PASS_EMAIL: ${env:BY_PASS_EMAIL}
|
||||
BYPASS_OTP: ${env:BYPASS_OTP}
|
||||
ENCRYPTION_KEY: ${env:ENCRYPTION_KEY}
|
||||
BREVO_EMAIL_API_KEY: ${env:BREVO_EMAIL_API_KEY}
|
||||
BREVO_API_BASEURL: ${env:BREVO_API_BASEURL}
|
||||
BREVO_FROM_EMAIL: ${env:BREVO_FROM_EMAIL}
|
||||
BREVO_SMTP_HOST: ${env:BREVO_SMTP_HOST}
|
||||
BREVO_SMTP_PORT: ${env:BREVO_SMTP_PORT}
|
||||
BREVO_SMTP_USER: ${env:BREVO_SMTP_USER}
|
||||
BREVO_SMTP_PASS: ${env:BREVO_SMTP_PASS}
|
||||
TWILIO_ACCOUNT_SID: ${env:TWILIO_ACCOUNT_SID}
|
||||
TWILIO_AUTH_TOKEN: ${env:TWILIO_AUTH_TOKEN}
|
||||
TWILIO_SMS_FROM: ${env:TWILIO_SMS_FROM}
|
||||
TWILIO_ALPHA_SENDER: ${env:TWILIO_ALPHA_SENDER}
|
||||
REFRESH_TOKEN_SECRET: ${env:REFRESH_TOKEN_SECRET}
|
||||
JWT_SECRET: ${env:JWT_SECRET}
|
||||
API_URL: ${env:API_URL}
|
||||
COGNITO_USER_POOL_ID: ${env:COGNITO_USER_POOL_ID}
|
||||
COGNITO_CLIENT_ID: ${env:COGNITO_CLIENT_ID}
|
||||
COGNITO_REGION: ${env:COGNITO_REGION}
|
||||
DEFAULT_PASSWORD: ${env:DEFAULT_PASSWORD}
|
||||
SALT_ROUNDS: ${env:SALT_ROUNDS}
|
||||
TEST_NUMBERS: ${env:TEST_NUMBERS}
|
||||
DEFAULT_OTP: ${env:DEFAULT_OTP}
|
||||
AWS_S3_BUCKET: ${env:AWS_S3_BUCKET}
|
||||
|
||||
iamRoleStatements:
|
||||
- Effect: Allow
|
||||
Action:
|
||||
- cognito-idp:AdminUpdateUserAttributes
|
||||
Resource: arn:aws:cognito-idp:${env:COGNITO_REGION}:058264420740:userpool/${env:COGNITO_USER_POOL_ID}
|
||||
|
||||
httpApi:
|
||||
cors:
|
||||
allowedOrigins:
|
||||
- '*'
|
||||
allowedHeaders:
|
||||
- Content-Type
|
||||
- X-Amz-Date
|
||||
- Authorization
|
||||
- X-Api-Key
|
||||
allowCredentials: false
|
||||
|
||||
package:
|
||||
individually: true
|
||||
patterns:
|
||||
- '!**/*' # Exclude everything by default
|
||||
- 'src/lambda/**' # Include handler files
|
||||
- 'node_modules/.prisma/client/libquery_engine-rhel-openssl-3.0.x.so.node' # Specific engine file
|
||||
- 'node_modules/@prisma/client/**' # Prisma client
|
||||
- '!node_modules/**' # Exclude other node_modules
|
||||
- '!node_modules/.prisma/client/query-engine-*' # Exclude other engines
|
||||
|
||||
functions:
|
||||
testFunc:
|
||||
handler: src/lambda/testFunc.handler
|
||||
events:
|
||||
- httpApi:
|
||||
path: /testFunc
|
||||
method: get
|
||||
Reference in New Issue
Block a user