How to create serverless.yml with different envs

How could we create serverless.yml file where I can add only 2 lambdas(with role and sns) in dev and 3 lambdas(with role and sns ) in staging and prod