Provides a Cloudflare Worker secret resource.
resource "cloudflare_worker_secret" "my_secret" {
account_id = "f037e56e89293a057740de681ac9abbe"
name = "MY_EXAMPLE_SECRET_TEXT"
script_name = "script_1"
secret_text = "my_secret_value"
}
account_id
(String) The account identifier to target for the resource.name
(String) The name of the Worker secret. Modifying this attribute will force creation of a new resource.script_name
(String) The name of the Worker script to associate the secret with. Modifying this attribute will force creation of a new resource.secret_text
(String, Sensitive) The text of the Worker secret. Modifying this attribute will force creation of a new resource.id
(String) The ID of this resource.Import is supported using the following syntax:
$ terraform import cloudflare_worker_secret.example <account_id>/<script_name>/<secret_name>