Skip to content

An example repo layout to have multiple products and multiple environments per product. Products can shared modules.

License

Notifications You must be signed in to change notification settings

hal58th/terraform_repo_layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Repo Layout

Using this repo layout, you can have multiple products(apps) and multiple environments for those products and your products can share modules. This repo uses the 'terra_wrap' command and is a fully working example that uses AWS.

The special bootstrap product.

The bootstrap product is a special directory that creates all the resources needed for the products to be initialized. In this example, we create the S3 buckets where we store the tfstate file needed for the products.

Running Terraform

A custom docker container is created to help control the Terraform version and lets you add any software you wish. You will build and run the docker container by running the command:

make run

If you use an IDE to write your code, you will still have to install Terraform locally.

Setting up AWS Credentials (If using AWS)

First you must install the aws cli client.

```bash
aws configure --profile (PROFILE-NAME)

This will prompt you for your secret access key. Where to get your secret access key.

About

An example repo layout to have multiple products and multiple environments per product. Products can shared modules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published