Hi Everyone,
I wanted to know if it's possible to have one file that can build in VMWare Workstation and AWS at the same time. I know a packer file can contain multiple builders, however there are slightly different ways to access the resources once they're up in each builder.
For example when accessing an AWS instance you call the {{ .WinRMPassword }} variable to gain access, where as in Workstation I can provide the username and password. My thoughts are to change the AWS password via UserData when the instance is called to solve for this.
However on my work station build I need to install VMWare-Tools, whereas this isn't required in AWS. I suppose I could have the script check for the environment type to make the decision if VMWare tools should be installed.
I'm new to packer so I'd love to hear some feedback from the community on how to best approach this.
Thanks,