Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Installation

byt3bl33d3r edited this page Sep 7, 2018 · 4 revisions

Installation

Red Baron only supports Terraform version 0.11.0 or newer and will only work on Linux x64 systems.

  1. Clone the repository and cd into the directory:

#~ git clone https://github.com/byt3bl33d3r/Red-Baron && cd Red-Baron

  1. 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 DIGITALOCEAN_TOKEN="token"
#~ export GODADDY_API_KEY="gdkey"
#~ export GODADDY_API_SECRET="gdsecret"
#~ export ARM_SUBSCRIPTION_ID="azure_subscription_id"
#~ export ARM_CLIENT_ID="azure_app_id"
#~ export ARM_CLIENT_SECRET="azure_app_password"
#~ export ARM_TENANT_ID="azure_tenant_id"
  1. Copy an infrastructure configuration file from the examples folder to the root directory and modify it to your needs

#~ cp examples/complete_c2.tf .

  1. Initialize terraform plugins, make sure everything looks ok, finally create the infrastructure
#~ terraform init
#~ terraform plan
#~ terraform apply

Google Cloud Compute

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