Added environment option to deploy resource