# Infrastructure as Code

This section explains a SAAS setup that makes it easy for SRE team to manage environments for different clouds.

## Packer

<https://www.packer.io/> is a tool by HashiCorp that is used to create custom base images. These base images typically contain common configs, like a private package repo and config management automation files. Packer stores the custom images in the cloud provider image store, so it can be selected when spinning up new VMs.

## Terraform

<https://www.terraform.io/> is another tool by HashiCorp. It is an open-source infrastructure as code software tool that provides a consistent CLI workflow to manage hundreds of cloud services. It is used to setup Cloud infrastructure, i.e. VPC, subnets, server, NAT gateways, firewall rules, security groups, any many other things.

Cheat Sheet: <https://acloudguru.com/blog/engineering/the-ultimate-terraform-cheatsheet>


---

# 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://marcel-birkner.gitbook.io/awesome-sre/cloud-tooling/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.
