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.
You would need to have installed:
- AWS CLI (https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)
- Terraform (https://learn.hashicorp.com/tutorials/terraform/install-cli)
- Ansible (https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
And AWS credentials configured via the standard AWS provider chain (e.g., AWS_PROFILE, env vars, or an IAM role).
Note: this will charge costs (unless you are in the Free Tier)
- Move to the Terraform folder (optional but recommended):
cd Terraform- Put your own Subfinder config file and reconFTW config file on the files/ folder
- Create a key pair to be used, e.g:
ssh-keygen -f terraform-keys -t ecdsa -b 521 - Run
terraform init - Run
terraform apply- You will be prompted for
allowed_ssh_cidr(recommended: your public IP +/32)
- You will be prompted for
- Type "yes" and hit enter
- Wait, because it can take up to 15 min.
- Once the process has finished, you can now login, using
ssh admin@ip -i terraform-keys - ???
- If you have finished playing with reconFTW and hacking the world, remember to destroy the instance using
terraform destroy