Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/cloudflare_zone: no need to set rate plans for new free plans #1102

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

jacobbednarz
Copy link
Member

By default, zones are created with the free rate plan so we don't need
to explicitly make the call a second time to set it.

To create zones with non-free rate plans, API tokens will require the
billing permissions.

Closes #1101

By default, zones are created with the free rate plan so we don't need
to explicitly make the call a second time to set it.

To create zones with non-free rate plans, API tokens will require the
billing permissions.

Closes #1101
@jacobbednarz jacobbednarz merged commit ec2193d into master Jun 15, 2021
@jacobbednarz jacobbednarz deleted the no-need-to-set-rate-plan-for-new-free branch June 15, 2021 02:01
@simoncpu
Copy link

Hi,

If I explicitly set plan = "free" in the cloudflare_zone resource, I still get an error setting plan free for zone error if my API token doesn't have an edit permission for Account/Billing.

ie:

resource "cloudflare_zone" "domain" {
    zone = "example.org"
    plan = "free"
}

@abulfat-m abulfat-m mentioned this pull request Jan 13, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a zone with CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID gives 403: Authentication error
3 participants