splunk / attack_range

A tool that allows you to create vulnerable instrumented local or cloud environments to simulate attacks against and collect the data into Splunk
Apache License 2.0
2.08k stars 349 forks source link

Missing Packer plugins required to create AMIs for AWS deployment #895

Closed ajpc500 closed 1 month ago

ajpc500 commented 4 months ago

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?

P4T12ICK commented 1 month ago

I would recommend to not use packer. Our plan is to remove packer in a future release.