https://github.com/thinkinglabs/terraform-aws-bootstrap
Template to bootstrap a Terraform AWS stack
https://github.com/thinkinglabs/terraform-aws-bootstrap
Last synced: 4 months ago
JSON representation
Template to bootstrap a Terraform AWS stack
- Host: GitHub
- URL: https://github.com/thinkinglabs/terraform-aws-bootstrap
- Owner: thinkinglabs
- License: mit
- Created: 2024-12-10T19:37:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T07:09:14.000Z (over 1 year ago)
- Last Synced: 2025-10-29T08:38:17.610Z (8 months ago)
- Language: Makefile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# terraform-aws-bootstrap
A bootstrap project to kickstart a Terraform AWS component.
This setup follows the Micro Stack pattern from [Infrastructure as Code, 2nd Edition, p62](https://www.oreilly.com/library/view/infrastructure-as-code/9781098114664/). Every single infrastructure component of an application/service maps to a single stack.
## Setup
Install [Terraform](https://developer.hashicorp.com/terraform/install?product_intent=terraform).
Install [tflint](https://github.com/terraform-linters/tflint).
Install [Trivy](https://trivy.dev/latest/getting-started/)
## Public Cloud
AWS.
## Environments
Assumes three environments:
- `development`
- `test`
- `production`
Each environment has its own set of configurations `./environments/.tfvar`.
Environments map to Terraform workspaces.
## Backend
The Terraform state is stored in an S3 bucket.
Either a single S3 bucket for all workspaces (environments).
Or one S3 bucket per environment.
## Apply
To apply a configuration:
```bash
make plan env=
make apply
```
where `` is one of `development`, `test` or `production`.