Skip to content

Chapter 5 Deploying to ECS #85

@KansaiUser

Description

@KansaiUser

Are you sure the application in the microservices/mlewp2-web-service is correct?
I did everything you write in the book (chapter 5 hosting on ECS) and it fails.

After investigating, and asking ChatGPT and other sources, they tell me that for a microservice to be host on AWS it has to have healthcheck endpoints. and your application does not seem to have them.

something like

from flask import Flask

app = Flask(__name__)

@app.route('/')
def home():
    return 'Hello, ECS!', 200

@app.route('/health')
def health():
    return 'Healthy', 200

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions