All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Rules - Terraform Support for Snippets

1y ago

Source

CloudflareRules - Terraform Support for Snippetscloudflare.com
Snippet from the RSS feed
Now, you can manage Cloudflare Snippets with Terraform . Use infrastructure-as-code to deploy and update Snippet code and rules without manual changes in the dashboard. Example Terraform configuration: resource "cloudflare_snippet" "my_snippet" { zone_id = "" name = "my_test_snippet_1" main_module = "file1.js" files { name = "file1.js" content = file ( "file1.js" ) } } resource "cloudflare_snippet_rules" "cookie_snippet_rule" { zone_id = "" rules { enabled = true expression = "http.cookie eq \" a=b \" " description = "Trigger snippet on specific cookie" snippet_name = "my_test_snippet_1" } depends_on = [ cloudflare_snippet . my_snippet ] } Learn more in the Configure Snippets using Terraform documentation.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.