Hi Vladyslav,
We’re pretty much all in AWS where I work and so I don’t have experience using the serverless framework with GCP or Azure. Depending on what you’re doing, there are slightly different syntaxes in the serverless.yml file and different event types probably have different data structures (eg. via API Gateway in Azure vs AWS).
In terms of Terraform, when looking at production environments (this can include dev, staging and production environments) we use CodeBuild as part of an overall pipeline to deliver the code, so we offload Terraform’s state to S3 so it can persist between deployments.
Hope this helps!