Refactor config and encryption files to use instance_mac_addr variable

This commit is contained in:
2024-10-01 23:30:18 +02:00
parent a507a884f2
commit 0fcb3596fe
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
resource "scaleway_object" "encryption_key" {
bucket = scaleway_object_bucket.infra_assets.id
key = "keys/${replace(data.contabo_instance.microk8s.mac_address, ":", "_")}.key"
key = "keys/${local.instance_mac_addr}.key"
content_base64 = base64encode(var.encryption_key)
}