项目作者: cisagov

项目描述 :
AWS infrastructure for Cyber Hygiene and BOD 18-01 scanning
高级语言: HTML
项目地址: git://github.com/cisagov/cyhy_amis.git
创建时间: 2018-07-27T03:05:19Z
项目社区:https://github.com/cisagov/cyhy_amis

开源协议:Creative Commons Zero v1.0 Universal

下载


CISA Cyber Hygiene (CyHy) AWS AMIs 📀

GitHub Build Status
CodeQL

Building the AMIs

The AMIs are built like so:

  1. cd packer
  2. ansible-galaxy install --role-file ansible/requirements.yml
  3. packer build bastion.json
  4. packer build dashboard.json
  5. packer build docker.json
  6. packer build mongo.json
  7. packer build nessus.json
  8. packer build nmap.json
  9. packer build reporter.json

If building a non-default image (for testing as an example) the prefix for the
created AMI can be changed from the default value of cyhy like so:

  1. packer build -var ami_prefix=testing bastion.json

Also note that

  1. ansible-galaxy install --force --role-file 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:

  1. ansible-galaxy install --role-file ansible/requirements.yml
  2. cd terraform
  3. terraform workspace select <your_workspace>
  4. terraform init
  5. terraform apply -var-file=<your_workspace>.tfvars

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:

  1. cd terraform
  2. terraform workspace select <your_workspace>
  3. terraform init
  4. terraform destroy -var-file=<your_workspace>.tfvars

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.