-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove serverless resources"
This reverts commit 1ccb61d.
- Loading branch information
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
api: | ||
handler: src/api.handler | ||
events: | ||
- http: | ||
path: / # this matches the base path | ||
method: ANY | ||
cors: true | ||
- http: | ||
# this matches any path, the token 'any' doesn't mean anything special | ||
path: /{any+} | ||
method: ANY | ||
cors: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
cloudwatchToS3: | ||
handler: src/tasks/cloudwatchToS3.handler | ||
timeout: 900 | ||
events: | ||
- schedule: rate(4 hours) | ||
reservedConcurrency: 1 | ||
memorySize: 4096 | ||
|
||
scheduler: | ||
handler: src/tasks/scheduler.handler | ||
timeout: 900 | ||
events: | ||
- schedule: rate(5 minutes) | ||
reservedConcurrency: 1 | ||
memorySize: 4096 | ||
|
||
syncdb: | ||
timeout: 900 | ||
handler: src/tasks/syncdb.handler | ||
|
||
pesyncdb: | ||
timeout: 900 | ||
handler: src/tasks/pesyncdb.handler | ||
|
||
syncmdl: | ||
timeout: 900 | ||
handler: src/tasks/syncmdl.handler | ||
|
||
bastion: | ||
timeout: 900 | ||
handler: src/tasks/bastion.handler | ||
|
||
makeGlobalAdmin: | ||
handler: src/tasks/makeGlobalAdmin.handler | ||
|
||
checkUserExpiration: | ||
timeout: 300 | ||
handler: src/tasks/checkUserExpiration.handler | ||
events: | ||
- schedule: cron(0 0 * * ? *) # Runs every day at midnight | ||
|
||
scanExecution: | ||
timeout: 900 # 15 minutes | ||
handler: src/tasks/scanExecution.handler | ||
memorySize: 4096 | ||
|
||
updateScanTaskStatus: | ||
handler: src/tasks/updateScanTaskStatus.handler | ||
events: | ||
- eventBridge: | ||
name: ${self:provider.stage}-updateScanTaskStatus | ||
pattern: | ||
source: | ||
- aws.ecs | ||
detail-type: | ||
- ECS Task State Change | ||
detail: | ||
clusterArn: | ||
- ${file(env.yml):${self:provider.stage}-ecs-cluster, ''} |