hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.32k stars 1.72k forks source link

Media CDN EdgeCacheService HostRules resources limit smaller than the Google API (10 vs 50). #19780

Open alexjj1 opened 1 day ago

alexjj1 commented 1 day ago

Community Note

Terraform Version & Provider Version(s)

Terraform v0.13.7

Affected Resource(s)

google_resource_network_services_edge_cache_service.go

Terraform Configuration

In google/services/networkservices/resource_network_services_edge_cache_service.go, the MaxItems limit is 10:

host_rule": {
    Type:        schema.TypeList,
    Required:    true,
    MaxItems:    10,
}

Debug Output

No response

Expected Behavior

According to https://cloud.google.com/media-cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices#routing, one may specify up to 50 host rules. Terraform should not artificially restrict the number of items.

Actual Behavior

Terraform limits host rules to 10.

Steps to reproduce

Add more than 10 host rules and then terraform apply.

Important Factoids

No response

References

No response

b/372531267

ggtisc commented 7 hours ago

Confirmed issue!

I can't define if this is a documentation issue or a bug because there are inconsistencies while the APi says that you can specify up to 50 host rules terraform registry states that the limit is just 10.