# Infrastructure as Code

### Infrastructure as Code

Setting up infrastructure can be tedious and time consuming, especially when operations are limited time wise. Hours or days can be spent trying to perfect the infrastructure you'll end up tearing down after an OP, which can take valuable time that would be spent testing the client's environment.

This is where Infrastructure as Code (IaC) comes in. Instead of hours you can build a full attack platform within 15 minutes to an hour with the push of a button *(and a good cup of Yorkshire Tea - not sponsored)*. We will go more in-depth with this concept in [infrastructure-automation](https://blog.securescape.cc/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-automation "mention") - for now, let's cover the basics.

### Pre-requisites

Prior knowledge with Docker is favoured but not required.

[Terraform](https://developer.hashicorp.com/terraform/install)

[Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)

[Pulumi](https://www.pulumi.com/)

[Vagrant](https://developer.hashicorp.com/vagrant/install)\*(Optional)

[Packer](https://developer.hashicorp.com/packer/install)\*(Optional)

[Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)

[AWS CLI](https://aws.amazon.com/cli/)

#### Optional Development VM

[Development Virtual Machine](https://drive.google.com/file/d/1AJLHKvkF1zAfdGcOgVTIKqypIih8tyIv/view?usp=drive_link)

**MD5 Hash:** 4FFD90CA7C9D7B0F83992DC04672A025

**SHA256 Hash:** D2C162D2C05D92BCB2D2636FE3090BB3BA564BD6836D1FA03B8ADBAF3DBF5665

### Table of Content

<details>

<summary><a data-mention href="infrastructure-as-code/terraform">terraform</a></summary>

[interacting-with-docker](https://blog.securescape.cc/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code/terraform/interacting-with-docker "mention")

[going-to-the-cloud](https://blog.securescape.cc/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code/terraform/going-to-the-cloud "mention")

[hybrid-deployment](https://blog.securescape.cc/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code/terraform/hybrid-deployment "mention")

</details>

<details>

<summary><a data-mention href="infrastructure-as-code/pulumi">pulumi</a></summary>

</details>

<details>

<summary><a data-mention href="infrastructure-as-code/ansible">ansible</a></summary>

</details>
