Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
anyoussefinia committed Dec 12, 2024
1 parent fd8c5a5 commit 169ec77
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions services/admin/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
service: admin

frameworkVersion: "3"

useDotenv: true

variablesResolutionMode: 20210326

package:
individually: true

Expand All @@ -13,7 +19,6 @@ custom:
iamPermissionsBoundaryPolicy: ${ssm:/configuration/${self:custom.stage}/iam/permissionsBoundaryPolicy, ssm:/configuration/default/iam/permissionsBoundaryPolicy, ""}
oneMacTableName: onemac-${self:custom.stage}-one
userPoolName: ${self:custom.stage}-user-pool
userPoolId: ${cf:${self:service}-${self:custom.stage}.UserPoolId}

provider:
name: aws
Expand Down Expand Up @@ -41,12 +46,12 @@ provider:
Action:
- cognito-idp:ListUsers
- cognito-idp:AdminUpdateUserAttributes
Resource: arn:aws:cognito-idp:${self:provider.region}:*:userpool/${self:custom.userPoolId}
Resource: !GetAtt CognitoUserPool.Arn

environment:
NODE_OPTIONS: '--enable-source-maps'
oneMacTableName: ${self:custom.oneMacTableName}
USER_POOL_ID: ${self:custom.userPoolId}
USER_POOL_ID: !Ref CognitoUserPool
layers:
- ${cf:aws-sdk-v2-layer-${self:custom.stage}.AwsSdkV2LambdaLayerQualifiedArn}

Expand Down Expand Up @@ -109,4 +114,4 @@ functions:

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

0 comments on commit 169ec77

Please sign in to comment.