cloudflare management for cms
This commit is contained in:
37
iac/modules/cloudflare_token/variables.tf
Normal file
37
iac/modules/cloudflare_token/variables.tf
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user