terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.23.0"
}
}
}
provider "cloudflare" {
api_token = "YOUR_TOKEN"
}
data "cloudflare_api_token_permission_groups" "all" {}
output "permissions" {
value = data.cloudflare_api_token_permission_groups.all
}
Use terraform console
to inspect your permissions.