How do I create a Cloudflare Access service token using Terraform?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I create a Cloudflare Access service token using Terraform?
Asked by:
66 Viewed 66 Answers

Answer (66)

Best Answer
(323)
To create a service token, you define a `cloudflare_access_service_token` resource in your Terraform configuration. You'll need to specify the `account_id` and `name` of the token. Optionally, you can set `ttl` (time to live) and `status` (active/inactive). Terraform will then call the Cloudflare API to create the token.