-
Notifications
You must be signed in to change notification settings - Fork 766
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.Categorizes issue or PR as related to version 5 of the provider.
Description
Confirmation
- This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
- I have searched the issue tracker and my issue isn't already found.
- I have replicated my issue using the latest version of the provider and it is still present.
Terraform and Cloudflare provider version
Terraform v1.13.4
on linux_amd64
Cloudflare provider 5.11
Affected resource(s)
- cloudflare_zone_subscription
Terraform configuration files
resource "cloudflare_zone_subscription" "example" {
zone_id = cloudflare_zone.example.id
rate_plan = {
id = "enterprise"
currency = "USD"
externally_managed = false
is_contract = true
public_name = "Enterprise"
scope = "zone"
}
}Link to debug output
no
Panic output
Terraform will perform the following actions:
# cloudflare_zone_subscription.example will be updated in-place
~ resource "cloudflare_zone_subscription" "example" {
~ currency = "USD" -> (known after apply)
+ current_period_end = (known after apply)
+ current_period_start = (known after apply)
- frequency = "not-applicable" -> null
id = "someuuid"
~ price = 0 -> (known after apply)
~ state = "Paid" -> (known after apply)
# (2 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
│ Error: Invalid Attribute Value Match
│
│ with cloudflare_zone_subscription.example,
│ on dns.tf line 138, in resource "cloudflare_zone_subscription" example":
│ 138: frequency = "not-applicable"
│
│ Attribute frequency value must be one of: ["weekly" "monthly" "quarterly" "yearly"], got: "not-applicable"
Expected output
success
Actual output
see above
Steps to reproduce
- Import an existing enterprise zone to a
cloudflare_zone_subscription - Try and apply the
cloudflare_zone_subscription
Additional factoids
not-applicable is missing from the list at
terraform-provider-cloudflare/internal/services/zone_subscription/schema.go
Lines 37 to 42 in adba156
| stringvalidator.OneOfCaseInsensitive( | |
| "weekly", | |
| "monthly", | |
| "quarterly", | |
| "yearly", | |
| ), |
References
#5971 may be similar
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.Categorizes issue or PR as related to version 5 of the provider.