The `shared_secret` value used in `vpn_ha` module resource `"google_compute_vpn_tunnel" "tunnels"` definition is not exposed in `variables.tf` file
Closed this issue · 2 comments
damianjaniszewski commented
The only way to use it is actually define its value for each tunnel in the code. Since this is sensitive value, it would be good to use from command line, ex:
terraform apply -var shared_secret='["tunnel-0-very-secret-shared-key", "tunnel-1-another-secret-shared-key"]'
Example definition in variables.tf
:
variable "shared_secret" {
type = list(string)
description = "Please enter the shared secret/pre-shared key"
default = []
}
morgante commented
You can pass the shared_secret
as part of the tunnels
variable.
github-actions commented
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days