Skip to content

bayudwiyansatria/terragrunt-components

Repository files navigation

Terragrunt Components

Contributor Covenant

Terragrunt to trigger terraform modules with their representative provider.

See Also:

Table of Contents

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  1. Install terraform
  2. Install terragrunt

Installation

Put terragrunt component on your infrastructure as code repository.

Assume:

|-- infrastructure
|   |-- terragrunt
|   |   |-- components <- CLONE TERRAGRUNT COMPONENT HERE
|   |   |   |-- kubernetes-dashboard
|   |   |   |   |-- provider.hcl
|   |   |   |   `-- terragrunt.hcl
|   |   |   |-- metrics-server
|   |   |   |   |-- provider.hcl
|   |   |   |   `-- terragrunt.hcl
|   |   |   `-- nginx-ingress-controller
|   |   |       |-- provider.hcl
|   |   |       `-- terragrunt.hcl
|   |   |-- accounts
|   |   |   `docker-desktop.yaml
|   |   |-- _templates
|   |   |   |-- backend-local.tpl
|   |   |   `-- backend-tfc.tpl
|   |   |-- live
|   |   |   |-- bayudwiyansatria
|   |   |   |   |-- docker-desktop
|   |   |   |   |   |-- dev
|   |   |   |   |   |   |-- metrics-server
|   |   |   |   |   |   |   `-- terragrunt.hcl
|   |   |   |   |   |   |-- kubernetes-dashboard
|   |   |   |   |   |   |   `-- terragrunt.hcl
|   |   |   |   |   |   `-- nginx-ingress-controller
|   |   |   |   |   |       `-- terragrunt.hcl
|   |   |   |   |   |-- stag
|   |   |   |   |   `-- prod
|   |   |   |   `-- aws
|   |   |   |       |-- dev
|   |   |   |       |   |-- metrics-server
|   |   |   |       |   |   `-- terragrunt.hcl
|   |   |   |       |   |-- kubernetes-dashboard
|   |   |   |       |   |   `-- terragrunt.hcl
|   |   |   |       |   `-- nginx-ingress-controller
|   |   |   |       |       `-- terragrunt.hcl
|   |   |   |       |-- stag
|   |   |   |       `-- prod 
|   |   |   `-- other-account
|   |   |       |-- docker-desktop
|   |   |       |   `-- prod
|   |   |       `-- aws
|   |   `-- terragrunt.hcl
|   `-- terraform
|       |-- metrics-server
|       |   `-- main.tf
|       |-- nginx-ingress-controller
|       |   `-- main.tf
|       `-- kubernetes-dashboard
|           `-- main.tf
|-- README.md
|-- NOTICE
|-- LICENSE
`-- SECURITY.md

Cloning Project

git clone git@github.com:bayudwiyansatria/terragrunt-components.git components

Or you can use submodule to get updates from community

git submodule add git@github.com:bayudwiyansatria/terragrunt-components.git components

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Looking to contribute to our code but need some help? There's a few ways to get information:

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Copyright © 2017 - 2022 Public Use. All Rights Reserved.

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc