Question
How do I create a Cloudflare Access service token using Terraform?
Asked by: USER7812
66 Viewed
66 Answers
Answer (66)
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.