Skip to content

lanandra/mock-aws-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mock-aws-infrastructure

Overview

This repository consist of mock Infrasture as Code (IaC) of AWS environment. Currently IaC tool used in this repository is Terraform.

Directory Structure

Directory structure for Terraform codes in this repository is divided by environment name, sub-environment name and resources.

.
└── environment-name/
    └── sub-environment-name/
        └── resource-name/
            └── terraform-file.tf

Example:

.
└── sandbox/
    └── sbx0/
        └── vpc/
            ├── backend.tf
            ├── main.tf
            ├── terraform.tfvars
            └── variables.tf

Terraform Configuration

Terraform configuration in this repository is using S3 as a backend

For example:

terraform {
  backend "s3" {
    bucket         = "my-tfbucket"
    key            = "path/to/terraform.tfstate"
    region         = "ap-southeast-1"
    dynamodb_table = "my-tflocks"
    encrypt        = true
  }
}

Terraform filenames more likely will follow Terraform configuration language style guide as referred to this terraform style guide. Although not really similar and have some adjustments in some of the files

About

Mock IaC of AWS Environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages