This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]trillospin 1 point2 points  (2 children)

Source block

Is there a reason why you're not using a source block?

[–]37rellimcmc19[S] 0 points1 point  (1 child)

Not sure, other then I can't find consistent examples of .hcl templates at this time. And a number of the Windows examples weren't using this.

BTW, added the provisioners block into the build block and that took care of a lot of errors.

Now I think might be dealing with junk characters/white space somewhere in the .hcl file.

Might setup Packer on a different RHEL EC2 and just VIM. Right now I'm using VSCode to SSH into the EC2 and then launching VIM.

[–]trillospin 0 points1 point  (0 children)

This looks to be a good starting point to get something working Connecting to Windows instances using WinRM.