Move worker under different Cloudflare account

I need to transfer a preconfigured worker under another Cloudflare account. Is this possible? My use case is that I develop the worker that I later pass to customers. I would like to do this as fluent as possible for customers so they do not have to do anything on their side just start using the worker. So far I send them the source code that customers deploy using wrangler and there is a lot of room for error. I was thinking about few options I have with Cloudflare. 1. I create a worker under Cloudflare account, invite customer as Super administrator and later the customer removes me from the list of members. The issue here is that I do not know how to create second account or do it using CLI since I want to make the whole process automatic. 2. Customer invites me as a member into their Account and gives me privileges to deploy under their account. In this scenario I do not know how to switch to a different account and deploy there. Could you please help me in either scenario or point me to resources that could help me? Thanks in advance.
2 Replies
Hello, I’m Allie!
You probably want Terraform: https://developers.cloudflare.com/terraform
Cloudflare Docs
Cloudflare Terraform · Cloudflare Terraform docs
Configure Cloudflare using HashiCorp’s “Infrastructure as Code” tool, Terraform. With Cloudflare’s Terraform provider , you can manage the Cloudflare …
TomTom
TomTomOP10mo ago
Thank you. I will look into that and update here on the progress.
Want results from more Discord servers?
Add your server