getlift / lift

Expanding Serverless Framework beyond functions using the AWS CDK
MIT License
917 stars 112 forks source link

Create ECS #105

Open piolet opened 3 years ago

piolet commented 3 years ago

Hi all,

starting from the predicate that our image exists (from ECR or docker hub), can we imagine a constructor that would take as argument the name of the image and, optionally, the cpu, the ram and the number of occurrences (etc. ?) and that would return as output the associated public ip :

service: my-app

provider:
    name: aws

plugins:
    - serverless-lift

constructs:

    # Include Lift constructs here

    my-service:
        type: ecs
        image: 'gotenberg' # from Docker hub for example

we could also specify a security group to complete the whole

mnapoli commented 3 years ago

Thanks for those details.

I think supporting ECS is out of the scope of serverless applications, and so out of Lift itself. But this is a perfect use case for custom constructs (#52).

piolet commented 3 years ago

and I'm waiting for it ;)