Skip to content

asajaroff/cloud-infrastructure-org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Infrastructure organization

Source of truth for all the infrastructure as code deployed in the cloud providers I own.

This repository serves as a working example on creating a fully functional infrastructure for different types of projects, some of them examples, some of them actual infrastructure.

It attempts to compare and provide insight on how different cloud providers manage resources.

It provides:

  • Modular stack
  • Dependency management. Import and export dependencies using terragrunt's dependency block
  • Terraform state and lock configuration and management
  • Costs breakdown with infracosts

The source code is shared under the BSD 2-Clause license.

Project structure

Different providers have its own folders within the terraform folder.

There are 2 main environments: prod and non-prod.

Opentofu & Terraform

Terragrunt will be used to orchestrate all terraform / tofu code.

terraform/aws

├── non-prod
│   ├── account.hcl
│   └── eu-west-1
│       ├── dev
│       │   ├── common_vars.yaml
│       │   ├── env.hcl
│       │   ├── mailserver
│       │   │   └── terragrunt.hcl
│       │   ├── network
│       │   │   ├── outputs.tf
│       │   │   ├── sg.tf
│       │   │   └── terragrunt.hcl
│       │   ├── s3_cdn
│       │   │   └── terragrunt.hcl
│       │   └── s3_website
│       │       └── terragrunt.hcl
│       ├── region.hcl
│       └── sandbox
│           ├── common_vars.yaml
│           ├── env.hcl
│           ├── mailserver
│           │   └── terragrunt.hcl
│           └── network
│               ├── outputs.tf
│               ├── sg.tf
│               └── terragrunt.hcl
├── prod
└── terragrunt.hcl

Modules

Modules must work with both tf and tofu.

To import a module from the library, use:

terragrunt catalog https://github.com/asajaroff/tofu-aws-modules//

Ansible

Yet to be completed.

Polumi

Yet to be completed.

Crossplane.io

Yet to be completed.

About

My cloud infrastructure infrastructure as code configuration.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published