Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloudflare - Terraform - Enable SSL full encryption

I want to enable SSL full strict encryption on the whole Cloudflare zone.

From the Cloudflare interface, I can do this into "myzone-something" > "SSL/TLS" > "Overview" > "Full strict".

Although I can create a single page rule with Terraform to enable that SSL mode (https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/page_rule), I would like to know if there is any way to set it directly at the zone level with Terraform ?

like image 988
jean553 Avatar asked Sep 03 '25 13:09

jean553


1 Answers

You need to use cloudflare_zone_settings_override (Resource) and set "ssl" parameter to "strict". Available values for that parameter is: "off", "flexible", "full", "strict", "origin_pull".

like image 73
zombi_man Avatar answered Sep 05 '25 16:09

zombi_man