Condition to create resource based on stages

Hello everyone. I want to create a resource with different parameters based on which environment that I’m going to deploy (e.g. dev, staging, prod). I’ve tried Conditional serverless.yml based on stage? solution but serverless throw error about “duplicated mapping key”.