-
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
type/documentationImprovements or additions to documentationImprovements or additions to documentationwaiting/dependencyBlocked waiting for an update to a dependencyBlocked waiting for an update to a dependency
Description
Hi, i am working on a script which is supposed to generate both server and client configurations including private and public keys for all my users. I have a list of users and just in case i am going to remove a user in the future, i am trying to setup a custom id for each key:
resource "wireguard_asymmetric_key" "vpn_client" {
count = length(local.permitted_clients)
id = sha256(local.permitted_clients[count.index].name)
}
This however produced the following error:
│ Error: Invalid or unknown key
│
│ with wireguard_asymmetric_key.vpn_client,
│ on private-key.tf line 6, in resource "wireguard_asymmetric_key" "vpn_client":
│ 6: id = sha256(local.permitted_clients[count.index].name)
Can you please make the ID configurable?
The docs already say that this should be possible, but i think it is missing the required implementation ...
Anyway, thank you very much for your effort to implement this provider :D
Metadata
Metadata
Assignees
Labels
type/documentationImprovements or additions to documentationImprovements or additions to documentationwaiting/dependencyBlocked waiting for an update to a dependencyBlocked waiting for an update to a dependency