-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into neptune-t4g-r6g
- Loading branch information
Showing
547 changed files
with
15,965 additions
and
1,753 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Restore Yarn cache | ||
uses: actions/[email protected].6 | ||
uses: actions/[email protected].7 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
|
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
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
212 changes: 0 additions & 212 deletions
212
packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/queue.ts
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/queue/index.ts
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 @@ | ||
export * from './queue'; |
15 changes: 15 additions & 0 deletions
15
packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/queue/lambda/index.py
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,15 @@ | ||
import os | ||
import boto3 | ||
from queue_backlog_calculator import QueueHandler | ||
|
||
def queue_handler(event, context): | ||
""" | ||
Handler for the lambda trigger | ||
""" | ||
|
||
ecs = boto3.client('ecs') | ||
sqs = boto3.client('sqs') | ||
|
||
queue_handler = QueueHandler(ecs_client=ecs, sqs_client=sqs, environ=os.environ) | ||
|
||
return queue_handler.emit() |
Oops, something went wrong.