Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ecs-patterns): Add Ephemeral Storage Support For Ecs Patterns #25090

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
90d1ac0
fix: Correct SamlConsolePrincipal for non-China (#24277)
Naumel Feb 22, 2023
5734dc2
Merge remote-tracking branch 'upstream/main'
homakk Mar 28, 2023
d0af953
Merge remote-tracking branch 'upstream/main'
homakk Mar 30, 2023
8c0a1c5
Merge remote-tracking branch 'upstream/main'
homakk Mar 31, 2023
21a3b7d
Merge remote-tracking branch 'upstream/main'
homakk Apr 3, 2023
b0bdeb9
Merge remote-tracking branch 'upstream/main'
homakk Apr 4, 2023
edfa290
Merge remote-tracking branch 'upstream/main'
homakk Apr 5, 2023
6d24118
Merge remote-tracking branch 'upstream/main'
homakk Apr 6, 2023
113a350
Merge remote-tracking branch 'upstream/main'
homakk Apr 7, 2023
92cda6b
Merge remote-tracking branch 'upstream/main'
homakk Apr 10, 2023
cc35804
Merge remote-tracking branch 'upstream/main'
homakk Apr 11, 2023
101f3c5
feat(ecs-patterns): Add Ephemeral Storage Support For Ecs Patterns
homakk Apr 12, 2023
831c10c
Merge branch 'main' into fargateEmpherealstorage
homakk Apr 12, 2023
51512f2
resolve third part licenses merge conflicts
homakk Apr 12, 2023
90c441d
updated readme file
homakk Apr 12, 2023
5ed1904
Merge branch 'main' into fargateEmpherealstorage
homakk Apr 13, 2023
0aa42c6
updated changes for validation error message
homakk Apr 13, 2023
05f3920
small change in the discription
homakk Apr 13, 2023
600d3a3
updated changes
homakk Apr 13, 2023
f4e2c6e
added testcases for ALB, AppliMutipleTargetGroup,NetworkMultipleTarge…
homakk Apr 14, 2023
e42c102
updated changes removed validation in ecs patterns and added interfac…
homakk Apr 20, 2023
ee59ea9
updated changes
homakk Apr 21, 2023
e957372
updated changes
homakk Apr 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM public.ecr.aws/lambda/python:3.6

RUN pip3 install boto3

ENV QUEUE_NAME $QUEUE_NAME

WORKDIR /src
ADD . /src

CMD python3 index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/python
import os
import boto3

QUEUE_NAME = os.environ.get('QUEUE_NAME')
print('QUEUE_NAME ' + QUEUE_NAME)

if __name__ == '__main__':
client = boto3.client('sqs')
queue_url = client.get_queue_url(QueueName=QUEUE_NAME)['QueueUrl']
print('queue_url ' + queue_url)
while True:
response = client.receive_message(
QueueUrl=queue_url,
WaitTimeSeconds=10,
)
if response and 'Messages' in response:
for msg in response['Messages']:
print(msg['Body'])
entries = [{'Id': x['MessageId'], 'ReceiptHandle': x['ReceiptHandle']} for x in response['Messages']]
client.delete_message_batch(QueueUrl=queue_url, Entries=entries)

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "31.0.0",
"files": {
"142d613070f1f13a0082f9d64ee0beeabb38849e33a01c6c7298a69f8291b340": {
"source": {
"path": "aws-ecs-patterns-queue-es.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "142d613070f1f13a0082f9d64ee0beeabb38849e33a01c6c7298a69f8291b340.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {
"95cefedd43575452a70cdeeeceb0f1c5728fd58c9ff8e81e760c3dac33c46417": {
"source": {
"directory": "asset.95cefedd43575452a70cdeeeceb0f1c5728fd58c9ff8e81e760c3dac33c46417"
},
"destinations": {
"current_account-current_region": {
"repositoryName": "cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}",
"imageTag": "95cefedd43575452a70cdeeeceb0f1c5728fd58c9ff8e81e760c3dac33c46417",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-image-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
}
}