Manage desec terraform token in terraform

This commit is contained in:
Jake Howard 2026-01-14 21:56:09 +00:00
parent 7830d16d09
commit 689d95c9c9
No known key found for this signature in database
GPG key ID: 57AFB45680EDD477

View file

@ -1,4 +1,4 @@
# Must be created manually and imported, otherwise there's no way to access the token
# NOTE: Tokens must be created manually and imported, otherwise there's no way to access the token
resource "desec_token" "traefik" {
name = "traefik"
perm_create_domain = false
@ -6,6 +6,13 @@ resource "desec_token" "traefik" {
perm_manage_tokens = false
}
resource "desec_token" "terraform" {
name = "Terraform"
perm_create_domain = false
perm_delete_domain = false
perm_manage_tokens = true
}
resource "desec_token_policy" "traefik_default" {
token_id = desec_token.traefik.id
perm_write = false