Thanks for all the help. Unfortunately, I think I am going to call it a day (or, actually two) and declare defeat much as I don’t want to.
It’s relatively uncomplicated to get knife ec2 to stand up an instance — the devilishly hard thing seems to be able to get it to bootstrap to a Chef server in the same pass. A Google search or two brings up people that don’t even try: they run knife ec2
and then knife windows winrm to bootstrap. I just don’t understand why that should be necessary.
It occurred to me that the most logical response to the “you are using the wrong key” was to create my own AMI and launch it with the key I originally used when launching from AWS’s AMI. Doing this doesn’t produce the OpenSSL padding error. It simply hangs
waiting for the password — forever. So, even when I am certain I am using the correct key, it fails. If I use the knife ec2 –x and –P parameters to specify the now known userid and password from my own AMI, I get a different error: “warning: epoll is not
supported on this platform.
I am on ChefDK 0.8.0, freshly installed just to try this.
It seems like Windows is always going to be a second-class citizen in Chef. That’s too bad.
This mailing list is very responsive — I really appreciate all the suggestions.
From: Fabien Delpierre
Reply-To: " "> " Date: Friday, September 25, 2015 at 11:11 To: chef Subject: [chef] Re: RE: Re: RE: Re: Newbie needs help creating AWS EC2 Windows instance The need for a keypair for Windows Server instances in AWS is an AWS limitation. They wanted a secure way to deliver the password for the local Administrator account. So they devised this scheme where you associate a keypair with the instance, even though,
as you pointed out, you will not be using SSH to actually interact with the instance. The password is encrypted with the keypair's public key, and you provide your private key to decrypt it.
Why Knife needs those elements follows from the above: once the instance is up, Knife attempts to download the password from the AWS API by providing the .pem file. Using that password, it can proceed to actually connect to the instance and provision it with
Chef.On Fri, Sep 25, 2015 at 10:56 AM, Alex Neihaus
<
" target="_blank">
> wrote:
Thanks again for your help. |
Archive powered by MHonArc 2.6.16.