AR
Size: a a a
AR
M
N
M
"{\"hello\": \"world\"}"или так?
KEY: value
ANOTHER_KEY: another_value
h
V
h
V
h
AR
"{\"hello\": \"world\"}"или так?
KEY: value
ANOTHER_KEY: another_value
yamldecode
распарсит файл в мапу и в манифесте можно будет с этой мапой работать. Например, чтобы передать хеши паролей, на стороне gitlab можно сделать переменную типа file c именем TF_VAR_pwhash_file
и содержимым вродеalise: $h$ash1
bob: $h$ash2
variable "pwhash_file" {}
locals {
pwhash = yamldecode(file(var.pwhash_file))
alise_hash = local.pwhash["alise"]
}
M
yamldecode
распарсит файл в мапу и в манифесте можно будет с этой мапой работать. Например, чтобы передать хеши паролей, на стороне gitlab можно сделать переменную типа file c именем TF_VAR_pwhash_file
и содержимым вродеalise: $h$ash1
bob: $h$ash2
variable "pwhash_file" {}
locals {
pwhash = yamldecode(file(var.pwhash_file))
alise_hash = local.pwhash["alise"]
}
h
VT
V
V
h
h
M
This command accepts all the arguments and flags that the apply command accepts, with the exception of a plan file argument
$ terraform destroy -auto-approve
Destroy complete! Resources: 0 destroyed.
DZ
DZ