# 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](/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-automation.md) - 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="/pages/jzi5itcWIrKGL3wc1ZTo">/pages/jzi5itcWIrKGL3wc1ZTo</a></summary>

[Interacting with Docker](/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code/terraform/interacting-with-docker.md)

[Going to the Cloud](/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code/terraform/going-to-the-cloud.md)

[Hybrid Deployment](/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code/terraform/hybrid-deployment.md)

</details>

<details>

<summary><a data-mention href="/pages/2YhQD1VaiJUGtzAIU4xO">/pages/2YhQD1VaiJUGtzAIU4xO</a></summary>

</details>

<details>

<summary><a data-mention href="/pages/Pueh7IUMc0s5lgVp7qfO">/pages/Pueh7IUMc0s5lgVp7qfO</a></summary>

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.securescape.cc/offensive-security/red-team/offensive-development/infrastructure-development-wip/infrastructure-as-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
