-
Notifications
You must be signed in to change notification settings - Fork 337
WIP RFC: Automatically configure account_id and zone_id #331
Comments
Made this WIP while we define those open questions |
This is a nice to have feature that we could implement for any single account profiles. Cloudflare allows a single profile to be associated with multiple accounts (or collections of zones), so inferring account id only works for profiles with a single account. The same goes for zone id - there can be multiple zone ids per account so you could only infer them if an account had a single associated zone. If I had to guess, the majority of folks using Wrangler would benefit from this. |
i think this should be pretty easy to do with the work that's already been done for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@xortive Would |
@Electroid i actually think we can make this better with |
TL;DR - if config has perms for only one account id / zone id, fill it in automatically on generate/init
zone_id
orroute
, justaccount_id
andscript_name
We have all the ingredients to infer the
account_id
andzone_id
instead of requiring the user to configure it manually using https://api.cloudflare.com/#zone-properties and https://api.cloudflare.com/#accounts-list-accounts.Open questions:
The text was updated successfully, but these errors were encountered: