attack_range icon indicating copy to clipboard operation
attack_range copied to clipboard

Missing Packer plugins required to create AMIs for AWS deployment

Open ajpc500 opened this issue 1 year ago • 0 comments

Using the docker image to build AMIs, packer produces errors for missing ansible and amazon plugins.

Error: Unknown provisioner type "ansible"

on packer/splunk_server/splunk_aws.pkr.hcl line 64:
(source code not available)

The provisioner ansible is unknown by Packer, and is likely part of a plugin
that is not installed.
You may find the needed plugin along with installation instructions documented
on the Packer integrations page.

https://developer.hashicorp.com/packer/integrations?filter=ansible

As per here, this can be fixed with the below commands:

packer plugins install github.com/hashicorp/ansible
packer plugins install github.com/hashicorp/amazon

It looks like this can also be added to Packer configuration files, which might be a better fix for this issue as additional dependencies aren't installed for users that are using local or Azure deployments?

ajpc500 avatar May 18 '24 13:05 ajpc500