Code Monkey home page Code Monkey logo

cloudprem-config's Introduction

Cloudprem Infrastructure Parameters

This repository contains the configuration parameters for the Cloudprem infrastructure of each environment. Each directory represents one environment (e.g. development) and contains parameters such as the version of the infrastructure and the inputs for the Terraform stack.

The infrastructure is managed and deployed using Terragrunt. By using terragrunt we are able to deploy the infrastructure to multiple environments, lock and version the infrastructure and keep Terraform code and state configuration DRY.

The outer terragrunt.hcl file contains configurations for the backend state and locks. The terragrunt.hcl files under each environment directory contain the parameters for that specific environment and the location and version of the Terraform code.

To deploy the stack, perform the following steps:

  1. Initialize the backend and install the required providers and modules using terragrunt:

    $ cd development
    $ terragrun init

    Terragrunt will use the envrionment variable AWS_REGION to configure the S3/DynamoDB backend. If not specified will default to us-west-2

  2. Review the parameters in the terragrunt.hcl file and execute the plan/apply

    $ terragrunt apply

To delete the infrastructure for the environment execute terragrunt destroy

$ terragrunt destroy

(Note: Terragrunt uses the directory name as part of the key for the state file, don't use the same directory for different environments, that can cause issues with the Terraform state, instead copy the configuration file into a new directory)

Pipelines

You can also deploy some pre-packaged CodePipeline pipelines to streamline the deployment process. For more information check the Cloudprem Pipelines repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.