Open youanden opened 2 years ago
never had this problem but yes, the packer is on a different path,
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
I tried following the instructions using the AWS Cloudshell and ran into an error during
terraform apply
asking whether I forgot to runpacker 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-ranterraform apply
from themagento
folder to success.