mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 09:01:59 +03:00
quote password - add /y for longer passwords
This commit is contained in:
@@ -9,7 +9,7 @@ resource "aws_instance" "win-example" {
|
||||
key_name = "${aws_key_pair.mykey.key_name}"
|
||||
user_data = <<EOF
|
||||
<powershell>
|
||||
net user ${var.INSTANCE_USERNAME} ${var.INSTANCE_PASSWORD} /add
|
||||
net user ${var.INSTANCE_USERNAME} '${var.INSTANCE_PASSWORD}' /add /y
|
||||
net localgroup administrators ${var.INSTANCE_USERNAME} /add
|
||||
|
||||
winrm quickconfig -q
|
||||
|
||||
Reference in New Issue
Block a user