Open querry43 opened 1 year ago
Thanks for reaching out and opening up this requests. We had a similar request for xorriso in order to support the creation of cd_files. So I can understand this request. We are looking at changing the docker images we release for Packer in the future. That said, I don't think at this time this is something that we would want to add in to the container, as we would essentially pin the Amazon's session-manager plugin to Packer releases, which doesn't seem too maintainable.
I've added the thinking label to this issue and will discuss internal to see how to best handle this particular request.
Is there an option to not use Docker for now as a workaround in your environment?
I haven't tested this but the approach to load the packer image and add the session_manager could also work:
FROM hashicorp/packer:light-1.8.5
# Install session_manager
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o "session-manager-plugin.rpm"
No luck on alpine unfortunately. Amazon doesn’t share any binaries that are compatible.
On Sun, Feb 26, 2023 at 00:37 Shaygan Hooshyari @.***> wrote:
I haven't tested this but the approach https://stackoverflow.com/a/69251129/6183805 to load the packer image and add the session_manager could also work:
FROM hashicorp/packer:light-1.8.5
Install session_manager
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o "session-manager-plugin.rpm"
— Reply to this email directly, view it on GitHub https://github.com/hashicorp/packer/issues/12267#issuecomment-1445298864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIJWYDBCGX72XCHOLTBOPDWZMI5PANCNFSM6AAAAAAU2W3S7M . You are receiving this because you authored the thread.Message ID: @.***>
Community Note
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
Overview of the Issue
Using ssh_interface = "session_manager" requires the session-manager-plugin is installed. This is not in the docker image and is also not available for alpine.
Reproduction Steps
Packer version
hashicorp/packer:light-1.8.5
Simplified Packer Template
Operating system and Environment details
Docker version 20.10.17, build 100c701
Log Fragments and crash.log files