# Importing existing resources

**URL:** <https://community.convox.com/t/importing-existing-resources/438>\
**Category:** Rack (Version 2)\
**Created:** [March 4, 2019, 11:32pm UTC](https://community.convox.com/t/importing-existing-resources/438 "2019-03-04T23:32:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![julian](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/julian/32/35_2.png) [@julian](https://community.convox.com/u/julian)\
**Post date:** [May 14, 2019, 4:52pm UTC](https://community.convox.com/t/importing-existing-resources/438/7 "2019-05-14T16:52:29Z")

</div>

@brandontruong Right now we are using a hack:

We define a gen-2 resource in our `convox.yml` which is used for most environments. Then we have our production resource as a gen-1 resource, and during deployment to production, or CI job rewrites our `convox.yml` file to remove the gen-2 definition.

It’s particularly fragile, because if someone tries to deploy to production manually, it will end up creating a new gen-2 resource and sending all traffic to it. Haven’t found a solution to this yet. [I asked about adding a option to disable gen-2 resources via env vars](https://community.convox.com/t/disable-app-resource-in-convox-yml/488), but no response.

I’m still open to other suggestions on how to solve this.

---

_[View the full topic](https://community.convox.com/t/importing-existing-resources/438)._
