eddmann / serverless-fargate

Maintain long-running Fargate ECS tasks within your Serverless project
53 stars 22 forks source link

Other resources depending on these services #55

Open Avadakedvr opened 6 months ago

Avadakedvr commented 6 months ago

While there is a dependsOn property to ensure certain resources are created before anything serverless-fargate creates, what about resources that must be created after anything serverless-fargate creates such as autoscaling policies? This is especially tricky because the logical IDs are generated via a manipulated string that includes the task name - hard to predict/use especially for feature branches - i.e. if the feature branch name is part of the task name!

You should create an option to allow the user to specify the logical ID of the AWS::ECS::Service resource and all other resources created by this plugin i.e. instead of manipulated task.name + "Service" here!

eddmann commented 4 months ago

Thanks for the raising this as an issue, just wondering have you put any thought into how you think the possible configuration could look?