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

new resource: WAF overrides #691

Merged
merged 8 commits into from
May 25, 2020

Conversation

jacobbednarz
Copy link
Member

Adds support and documentation for configuring WAF overrides via a new resource cloudflare_waf_override.

Documentation: https://api.cloudflare.com/#waf-overrides-properties

Screenshots

Sidebar

Full page

Closes #554

This allows reuse of the scaffolding used to build a WAF override without
duplicating the iterations and formatting in multiple places.
This single scenario allows us to test all three cases without adding 3 more tests 🎉
@ghost ghost added size/XL kind/documentation Categorizes issue or PR as related to documentation. labels May 20, 2020
// buildWAFOverride centralises the creation of a WAFOverride struct which can
// be reused between Create and Update methods to ensure consistent building of
// the values.
func buildWAFOverride(d *schema.ResourceData) (cloudflare.WAFOverride, error) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't yet emit error anywhere in here but I'd rather return it now and have it already accounted for then try to introduce a breaking change later on.

@jacobbednarz jacobbednarz merged commit cde562a into cloudflare:master May 25, 2020
@jacobbednarz jacobbednarz deleted the waf-overrides branch May 25, 2020 22:36
boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
test(zone): refactor testing of zone.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support WAF Overrides
1 participant