-
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.
Refactor high level AWS ECS constructs into the aws-ecs-patterns module
- Loading branch information
Showing
27 changed files
with
168 additions
and
83 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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
3 changes: 1 addition & 2 deletions
3
...b/load-balanced-fargate-service-applet.ts → ...e/load-balanced-fargate-service-applet.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
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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
// AWS::ECS-PATTERNS CloudFormation Resources: | ||
export * from './scheduled-ecs-task'; | ||
export * from './ecs/ecs-queue-worker-service'; | ||
export * from './fargate/fargate-queue-worker-service'; | ||
export * from './base/queue-worker-service-base'; | ||
|
||
export * from './ecs/load-balanced-ecs-service'; | ||
export * from './fargate/load-balanced-fargate-service'; | ||
export * from './fargate/load-balanced-fargate-service-applet'; | ||
export * from './base/load-balanced-service-base'; | ||
|
||
export * from './ecs/scheduled-ecs-task'; |
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
5 changes: 5 additions & 0 deletions
5
packages/@aws-cdk/aws-ecs-patterns/test/demo-image/Dockerfile
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,5 @@ | ||
FROM python:3.6 | ||
EXPOSE 8000 | ||
WORKDIR /src | ||
ADD . /src | ||
CMD python3 index.py |
33 changes: 33 additions & 0 deletions
33
packages/@aws-cdk/aws-ecs-patterns/test/demo-image/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,33 @@ | ||
#!/usr/bin/python | ||
import sys | ||
import textwrap | ||
import http.server | ||
import socketserver | ||
|
||
PORT = 8000 | ||
|
||
|
||
class Handler(http.server.SimpleHTTPRequestHandler): | ||
def do_GET(self): | ||
self.send_response(200) | ||
self.send_header('Content-Type', 'text/html') | ||
self.end_headers() | ||
self.wfile.write(textwrap.dedent('''\ | ||
<!doctype html> | ||
<html><head><title>It works</title></head> | ||
<body> | ||
<h1>Hello from the integ test container</h1> | ||
<p>This container got built and started as part of the integ test.</p> | ||
<img src="https://media.giphy.com/media/nFjDu1LjEADh6/giphy.gif"> | ||
</body> | ||
''').encode('utf-8')) | ||
|
||
|
||
def main(): | ||
httpd = http.server.HTTPServer(("", PORT), Handler) | ||
print("serving at port", PORT) | ||
httpd.serve_forever() | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
File renamed without changes.
Oops, something went wrong.