added upsert option for resource configuration