-
Notifications
You must be signed in to change notification settings - Fork 259
Installation
byt3bl33d3r edited this page Feb 21, 2018
·
3 revisions
Red Baron only supports Terraform version 0.10.0 or newer and will only work on Linux x64 systems.
- Clone the repository and
cd
into the directory:
#~ git clone https://github.com/Coalfire-Research/Red-Baron && cd Red-Baron
- Create environment variables with the appropriate API Keys
#~ export AWS_ACCESS_KEY_ID="accesskey"
#~ export AWS_SECRET_ACCESS_KEY="secretkey"
#~ export AWS_DEFAULT_REGION="us-east-1"
#~ export LINODE_API_KEY="apikey"
#~ export GODADDY_API_KEY="gdkey"
#~ export GODADDY_API_SECRET="gdsecret"
- Copy an infrastructure configuration file from the examples folder to the root directory and modify it to your needs
#~ cp examples/complete_c2.tf .
- Initialize terraform plugins, make sure everything looks ok, finally create the infrastructure
#~ terraform init
#~ terraform plan
#~ terraform apply
Google Cloud Compute requires creating a project under the Google Cloud console.
- Create a project, generate a service key, and download the json file to the google_keys dir.
- Modify the variable.tf and main.tf files to reference your service account key json file and your project-id.
- Set up firewall rules in the Google Cloud Console: Settings -> VPC network -> Firewall rules. Create a new rule:
network=default, priority=1, direction=ingress, action on match=allow, ip-range=0.0.0.0/24, protocols:ports=tcp:22,tcp:80,tcp:443