Thanks Rickard, I actually have a powershelgl function on the AMI that will do this and called that function via the user-script however that had no effect and didn't seem to run.
I have since realised that my custom (test) AMI was miss configured and I had incorrectly not set the password to random in EC2-Config (not EC2Lunch as I statued in my OP). SO now I have my AMI correctly confirmed it's now working a treat. Thanks again. On Friday, April 27, 2018 at 11:53:30 AM UTC+1, Rickard von Essen wrote: > > Can't you just use a user-script to re-enable password creation / > fetching? > > On Fri, Apr 27, 2018, 12:33 <[email protected] <javascript:>> wrote: > >> Currently building AMIs from within EC2 using EC2Launch. >> >> This seems to be causing me an issue when trying to use this AMI as my >> Source AMI because the password is unobtainable from Packer or AWS >> because Ec2SetPassword"="Disabled is in play. Has anyone else come up >> agains this and is so how do I get around this issue? Because the password >> is unobtainable I am stuck at the dreaded "*Waiting for WinRM to become >> available..."* >> >> >> Any help or suggestions welcome >> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/mitchellh/packer/issues >> IRC: #packer-tool on Freenode >> --- >> You received this message because you are subscribed to the Google Groups >> "Packer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/2effc8dd-34a0-472a-8f3c-e822cf317827%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/2effc8dd-34a0-472a-8f3c-e822cf317827%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/eae71fd9-00e5-44f2-8d36-c49f3e9d45f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
