Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.65 KB

File metadata and controls

32 lines (23 loc) · 1.65 KB

reconFTW loves Ansible+Terraform <3

This is an automated script created to work under AWS by using Terraform and Ansible. It allows you to easily deploy it or to easily adapt it into your IaaC strategy.

Note (best-effort): This Terraform/Ansible setup is provided as a reference. Cloud images, SSH usernames, and package repos change over time, so you may need to adjust it for your environment. It is not covered by reconFTW CI.

Requirements

You would need to have installed:

And AWS credentials configured via the standard AWS provider chain (e.g., AWS_PROFILE, env vars, or an IAM role).

Deploying reconFTW on the AWS Cloud using Terraform and Ansible

Note: this will charge costs (unless you are in the Free Tier)

  1. Move to the Terraform folder (optional but recommended): cd Terraform
    • Put your own Subfinder config file and reconFTW config file on the files/ folder
  2. Create a key pair to be used, e.g: ssh-keygen -f terraform-keys -t ecdsa -b 521
  3. Run terraform init
  4. Run terraform apply
    • You will be prompted for allowed_ssh_cidr (recommended: your public IP + /32)
  5. Type "yes" and hit enter
  6. Wait, because it can take up to 15 min.
  7. Once the process has finished, you can now login, using ssh admin@ip -i terraform-keys
  8. ???
  9. If you have finished playing with reconFTW and hacking the world, remember to destroy the instance using terraform destroy