Skip to content

AWS infrastructure for Cyber Hygiene and BOD 18-01 scanning

License

Notifications You must be signed in to change notification settings

st0rmbl3ss3d/cyhy_amis

 
 

Repository files navigation

NCATS AWS AMIs 📀

GitHub Build Status

Building the AMIs

The AMIs are built like so:

ansible-galaxy install -r packer/ansible/requirements.yml
packer build packer/bastion.json
packer build packer/docker.json
packer build packer/mongo.json
packer build packer/nessus.json
packer build packer/nmap.json
AWS_MAX_ATTEMPTS=60 AWS_POLL_DELAY_SECONDS=60 packer build packer/reporter.json
AWS_MAX_ATTEMPTS=60 AWS_POLL_DELAY_SECONDS=60 packer build packer/dashboard.json

Note the environment variables in the packer command lines corresponding to feeds.json and reporter.json. They are present because the AMIs produced by those lines are large and need extra time to be copied, as discussed here.

Also note that

ansible-galaxy install --force -r packer/ansible/requirements.yml

will update the roles that are being pulled from external sources. This may be required, for example, if a role that is being pulled from a GitHub repository has been updated and you want the new changes. By default ansible-galaxy install will not upgrade roles.

Building the Terraform-based infrastructure

The Terraform-based infrastructure is built like so:

ansible-galaxy install -r ansible/requirements.yml
cd terraform
terraform workspace select <your_workspace>
./configure.py
terraform init
terraform apply -var-file=<your_workspace>.yml

Again, in some cases you may find it useful to add the --force flag to the ansible-galaxy command.

Tearing down the Terraform-based infrastructure

The Terraform-based infrastructure is torn down like so:

cd terraform
terraform workspace select <your_workspace>
./configure.py
terraform init
terraform destroy -var-file=<your_workspace>.yml

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

About

AWS infrastructure for Cyber Hygiene and BOD 18-01 scanning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 45.1%
  • HCL 45.0%
  • Shell 6.4%
  • Python 3.3%
  • JavaScript 0.2%