Closed matross-gh closed 10 months ago
Added VM_PAssword as a secret to the workflows. If not using workflows, you need to add it to the cli string:
terraform plan --var-file ../../tfvars/parameters.tfvars --var "default_location=usgovvirginia" --var "subscription_id_hub=<
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Error: No value for required variable
on variables.devsecops.tf line 71: 71: variable "vm_admin_password" {
The root module input variable "vm_admin_password" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable.
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
Suggesting, or something similar and place into Key Vault
resource "random_password" "password" { length = 16 special = true overridespecial = "!#$%&*()-=+[]{}<>:?" }
resource "aws_db_instance" "example" { instance_class = "db.t3.micro" allocated_storage = 64 engine = "mysql" username = "someone" password = random_password.password.result }