38 lines
803 B
HCL
38 lines
803 B
HCL
variable "account_id" {
|
|
description = "Cloudflare account ID"
|
|
type = string
|
|
}
|
|
|
|
variable "token_name" {
|
|
description = "Nom du token Cloudflare à créer"
|
|
type = string
|
|
}
|
|
|
|
variable "permissions" {
|
|
description = <<-EOT
|
|
Liste des permissions Cloudflare (ex: [\"Pages Deploy\", \"Zone DNS Edit\"])
|
|
you can check required permissions per service
|
|
https://developers.cloudflare.com/api/node/
|
|
EOT
|
|
type = object({
|
|
account = optional(list(string))
|
|
bucket = optional(list(string))
|
|
})
|
|
}
|
|
|
|
variable "bucket" {
|
|
description = <<-EOT
|
|
Objet optionnel représentant un bucket R2.
|
|
Exemple :
|
|
{
|
|
name = "mon-bucket"
|
|
jurisdiction = "eu"
|
|
}
|
|
EOT
|
|
type = object({
|
|
name = string
|
|
jurisdiction = string
|
|
})
|
|
default = null
|
|
}
|