Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
anyoussefinia committed Dec 9, 2024
1 parent cf6a916 commit d23bb62
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions services/admin/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ plugins:
- serverless-esbuild
- serverless-dotenv-plugin
- serverless-s3-bucket-helper

custom:
stage: ${opt:stage, 'dev'} # Ensure the 'stage' is being passed correctly
stage: ${opt:stage, self:provider.stage}
iamPermissionsBoundaryPolicy: ${ssm:/configuration/${self:custom.stage}/iam/permissionsBoundaryPolicy, ssm:/configuration/default/iam/permissionsBoundaryPolicy, ""}
oneMacTableName: onemac-${self:custom.stage}-one

provider:
name: aws
runtime: nodejs20.x
region: us-east-1
stage: ${self:custom.stage}
stage: dev
iam:
role:
path: ${ssm:/configuration/${self:custom.stage}/iam/path, ssm:/configuration/default/iam/path, "/"}
Expand All @@ -39,23 +37,16 @@ provider:
- arn:aws:dynamodb:*:*:table/onemac-develop-one
- arn:aws:dynamodb:*:*:table/${self:custom.oneMacTableName}
- arn:aws:dynamodb:*:*:table/${self:custom.oneMacTableName}/index/*

environment:
NODE_OPTIONS: '--enable-source-maps'
oneMacTableName: ${self:custom.oneMacTableName}

layers:
- ${cf:aws-sdk-v2-layer-${self:custom.stage}.AwsSdkV2LambdaLayerQualifiedArn}
- ${cf:aws-sdk-v2-layer-${self:custom.stage}.AwsSdkV2LambdaLayerQualifiedArn}

functions:
addPropertyToJWT:
handler: ./handlers/addPropertyToJWT.handler
timeout: 360
events:
- cognitoUserPool:
pool: ${self:custom.stage}-user-pool # Ensure this resolves correctly
trigger: PreTokenGeneration
existing: true

resetData:
handler: ./handlers/resetData.main
Expand Down Expand Up @@ -94,5 +85,4 @@ functions:

insertNotification:
handler: ./handlers/insertNotification.main
timeout: 180

timeout: 180

0 comments on commit d23bb62

Please sign in to comment.