Skip to content
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

AWS Cloudshell has its own "packer" binary #17

Open
youanden opened this issue Mar 20, 2022 · 2 comments
Open

AWS Cloudshell has its own "packer" binary #17

youanden opened this issue Mar 20, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@youanden
Copy link

I tried following the instructions using the AWS Cloudshell and ran into an error during terraform apply asking whether I forgot to run packer init.

Turns out, which packer returns /usr/sbin/packer instead of /usr/bin/packer.

I manually cd'd into magento/packer and ran /usr/bin/packer init packer.pkr.hcl, re-ran terraform apply from the magento folder to success.

@magenx
Copy link
Owner

magenx commented Mar 20, 2022

never had this problem
but yes, the packer is on a different path,

@magenx
Copy link
Owner

magenx commented Mar 20, 2022

https://learn.hashicorp.com/tutorials/packer/get-started-install-cli

On some distributions, there may be another tool named packer installed by default. The following error indicates that there is a name conflict.

To fix this, create a symlink to packer that uses a different name like packer.io, or invoke the packer binary you want using its absolute path, e.g. /usr/bin/packer

@magenx magenx added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants