Skip to content

Commit

Permalink
Update serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
cduhn17 committed Feb 9, 2024
1 parent 58f87e6 commit cc3cc75
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
35 changes: 15 additions & 20 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@aws-sdk/client-ssm": "^3.414.0",
"@elastic/elasticsearch": "~7.10.0",
"@thefaultvault/tfv-cpe-parser": "^1.3.0",
"@types/dockerode": "^3.3.19",
"amqplib": "^0.10.3",
"aws-sdk": "^2.1551.0",
"axios": "^1.6",
Expand All @@ -22,7 +23,6 @@
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"date-fns": "^3.3.1",
"@types/dockerode": "^3.3.19",
"express": "^4.18.1",
"global-agent": "^2.2.0",
"got": "^11.8.5",
Expand Down Expand Up @@ -78,6 +78,7 @@
"sentencer": "^0.2.1",
"serverless": "^3.30",
"serverless-domain-manager": "^7.0",
"serverless-dotenv-plugin": "^6.0.0",
"serverless-webpack": "^5.11.0",
"supertest": "^6.3",
"ts-jest": "^27",
Expand Down
3 changes: 2 additions & 1 deletion backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ provider:
- cognito-idp:AdminDisableUser
- cognito-idp:ListUsers
- cognito-idp:AdminSetUserPassword
Resource: "arn:aws:cognito-idp:${self:provider.region}:${aws:accountId}:userpool/${file(env.yml):${self:provider.stage}.REACT_APP_USER_POOL_ID}"
Resource: "arn:aws:cognito-idp:${self:provider.region}:${aws:accountId}:userpool/${env:REACT_APP_USER_POOL_ID}"
- Effect: Allow
Action:
- ecs:RunTask
Expand Down Expand Up @@ -136,3 +136,4 @@ functions:
plugins:
- serverless-domain-manager
- serverless-webpack
- serverless-dotenv-plugin
2 changes: 1 addition & 1 deletion backend/src/tasks/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ checkUserExpiration:
- "cognito-idp:AdminDisableUser"
- "cognito-idp:ListUsers"
- "cognito-idp:AdminSetUserPassword"
Resource: "arn:aws:cognito-idp:${self:provider.region}:${aws:accountId}:userpool/${file(env.yml):${self:provider.stage}.REACT_APP_USER_POOL_ID}"
Resource: "arn:aws:cognito-idp:${self:provider.region}:${aws:accountId}:userpool/${env:REACT_APP_USER_POOL_ID}"


scanExecution:
Expand Down

0 comments on commit cc3cc75

Please sign in to comment.