1

When I run packer build -var aws_access_key=$AWS_ACCESS_KEY_ID -var aws_secret_key=$AWS_SECRET_ACCESS_KEY windows-2012.json

I got this error:

1 error(s) occurred:

* An ssh_username must be specified
  Note: some builders used to default ssh_username to "root".

However there is no native support of ssh in windows 2012. So how can I come up with a ssh_username?

When I was using terraform to build the server, I used WinRM protocol. Can I instruct packer to use WinRM?

Anthony Kong
  • 3,288
  • 11
  • 57
  • 96

1 Answers1

1

The problem goes away when I switched to use WinRM

Anthony Kong
  • 3,288
  • 11
  • 57
  • 96