In my organisation there are deployments using both SAM and Copilot. I am unable to work out what is the criteria or best use cases to use one or the other, and can't find any direct comparisons online?
So my question is are they comparable, if so when is it best to use each, and if not, why?
Copilot deploys to AWS ECS. SAM deploys to AWS Lambda. So if you want to use ECS, then Copilot is an option. If you want to use Lambda then SAM is an option.
They aren't really comparable. They deploy to different AWS compute services with different runtime architectures.