The question
In general, what would be pros and cons of choosing SAM over serverless or vice-versa?
Is possibly opinion-based, I can't tell. One would need domain knowledge to tell. It might be that there's an industry de facto standard, where one way is always better.
However, a question asking for "general pros and cons" is too broad for SO. This question should be closed for that reason.
Can you write SAM in serverless.yaml? Like SAM has some useful features and if we could utilize them in serverless that would be great
This is specific, but also a yes/no question. It seem like either the answer would be something easily found in documentation, or this is an invitation to a discussion.
Overall, the question opens up for discussion. It would not be wrong to flag it as neither "primarily opinion-based" or "too broad". According to a diamond mod you flagged it as primarily-opinion based, so you did the right thing.
The 4 people who did the triage review caused by the flag, appears to be - at a glance:
- One paying attention
- One not paying attention
- One rookie reviewer, who might have yet to learn
- One "robo-reviewer"
The latter 3 let the question through.
https://stackoverflow.com/questions/47621920/what-ablablabla
and make it manuallyhttps://stackoverflow.com/posts/47621920/timeline
. Why there is no a link to timeline somewhere?