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!
While there is a
dependsOn
property to ensure certain resources are created before anythingserverless-fargate
creates, what about resources that must be created after anythingserverless-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 manipulatedtask.name
+"Service"
here!