-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH communicator broken #498
Comments
Hi @hahuang65, The connection to localhost is because you specified The following lines from your logs hint at it:
In this case, you have one In the logs however, this fails with a lookup issue on |
Yup, I understand this. So Also, I rebooted my computer and now the error is different. Instead of
|
Ah, yes, that was because I edited my
which changed my error from
|
Right, so I am getting
regardless if I use |
Looks like this is all user error. Layers of problems:
Sorry for the trouble and wasted time/attention. |
Overview of the Issue
Unable to build AMIs with
amazon-ebs
.When using
temporary_iam_instance_profile_policy_document
It complains about
Retryable error: InvalidParameterValue: Value (packer-66b24927-f1bf-3659-0653-2b0e2181a066) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
Then fails to SSH
[DEBUG] TCP connection to SSH ip/port failed: dial tcp: lookup localhost on [::1]:53: no such host
When using
iam_instance_profile
, it doesn't seem to have an error with setting the instance up, but it still tries to connect tolocalhost
or0.0.0.0
for SSH.Reproduction Steps
Just run
packer build -var "name=grafana" ami.pkr.hcl
with my build file.Change the
temporary_iam_instance_profile_policy_document
block toiam_instance_profile
to test for the other case.Plugin and Packer version
Packer v1.11.2
packer-plugin-amazon_v1.3.2_x5.0_linux_amd64
Simplified Packer Buildfile
https://gist.github.com/hahuang65/a35654fbf7261a9044e0e98a226ccbe6
Operating system and Environment details
Arch Linux
Log Fragments and crash.log files
https://gist.github.com/hahuang65/6b96e920c0c10b548664370fa0e799f2 (both scenarios are here)
The text was updated successfully, but these errors were encountered: