Running HashiCorp Packer

preview_player
Показать описание


About The Cloud Coach:
Michael Crilly, aka "The Cloud Coach", is a leading expert in DevOps and automation. The Coach has automated everything from Cisco hardware to AWS resources using various tools like Python, Ruby, Go, Terraform, Packer, CloudFormation, CI/CD, JenkinsCI, GitOps, and much more. The Coach also loves to teach everyone and anyone about the joy of automating complex Cloud resources to deliver a fast, better infrastructure that's cheaper to operate and more stable to manage.

Connect with The Cloud Coach:

Checkout my FREE courses!

Checkout my PREMIUM courses!
Рекомендации по теме
Комментарии
Автор

I have to say that SSH connection from Packer to aws Windows servers seems to be very complicated (need to install OpenSSH into server and etc.)
Myself used WinRM, just needed to play a bit with Firewall and certificate in the "original" AMI to have HTTPS port open and avoid timeouts in the packer :)
By the way thanks for the videos, I'm just started learning terraform/packer and its really nice to see your content.

KubernetesEnjoyer
Автор

Not sure why the ssh connection is failing, the aws profile I set is connected to the new user I created( it has admin credentials). Getting the below error

==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Adding tags to source instance
amazon-ebs: Adding tag: "Name": "Packer Builder"
amazon-ebs: Instance ID: i-0121095fcf866fa7b
==> amazon-ebs: Waiting for instance (i-0121095fcf866fa7b) to become ready...
==> amazon-ebs: Using ssh communicator to connect: ipaddress
==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Error waiting for SSH: Packer experienced an authentication error when trying
to connect via SSH. This can happen if your username/password are wrong. You may want to doubl
e-check your credentials as part of your debugging process. original error: ssh: handshake fai
led: ssh: unable to authenticate, attempted methods [none publickey], no supported methods rem
ain

simplyviki