GithubHelp home page GithubHelp logo

ecogit-stage / dcshiny-arc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sardegnaturismo/dcshiny-arc

0.0 0.0 0.0 194 KB

Codice terraform usato per la generazione degli ambienti stage e produzione dell'applicazione dcshiny

Shell 22.17% HCL 77.83%

dcshiny-arc's Introduction

Planning block

Go to working directory: cd <live working dir>/<environment>/<block>

Terragrunt plan will pickup latest model revision from the git repository configured on terraform.tfvars within the block directory. It will then initialize terraform environment and show desired infrastructures changes. Run terragrunt plan to start planning. Run with --terragrunt-source-updateto force sources update to latest available revision.

Local testing, iterating

When testing local version of model (aka module) You need to set specific flags to inform terragrunt of the source relative path pointing to the git local working directory.

Assuming your home dir contains "live" and "modules" repositories:

~ |- live |- modules

To plan infrastructure enter live directory, environment, block:

cd <live working dir>/<environment>/<block>

i.e. cd live/prod/common

Run terragrunt plan specifying the relative path to reach module sources for the block:

terragrunt plan --terragrunt-source ../../../modules/<block>

i.e. terragrunt plan --terragrunt-source ../../../modules/common

Run with --terragrunt-source-updateto force sources update to latest available revision.

Planning all infrastructure block at once

Terragrunt plan-all will pickup latest revision of each infrastructure block, then initialize terraform environment and show desired infrastructures changes. Change to live working directory cd live

Run terragrunt plan-all to start planning. Run with --terragrunt-source-updateto force sources update to latest available revision from the associated git repository.

Local testing, iterating

Set source relative path to the git local working directory for module.

Assuming your home dir contains "live" and "modules" repositories:

~ |- live |- modules

To plan-all infrastructure at once enter live directory, environment:

cd <live working dir>/<environment>

i.e. cd live/prod

Run terragrunt plan-all and set the relative path to the module sources :

terragrunt plan-all --terragrunt-source ../../../modules

Run with --terragrunt-source-updateto force sources update to latest available revision.

Applying

Single block - latest revision from git module repository ( branch master)

Enter live directory, environment, block:

cd <live working dir>/<environment>/<block>

i.e. cd live/prod/common

Run terragrunt apply

Single block - Local testing, iterating

Enter live directory, environment, block:

cd <live working dir>/<environment>/<block>

i.e. cd live/prod/common

Run terragrunt apply --terragrunt-source ../../../modules/<block>

i.e. terragrunt apply --terragrunt-source ../../../modules/common

Run with --terragrunt-source-updateto force sources update to latest available revision.

All blocks at once - latest revision from git module repository ( branch master)

Enter live directory, environment, block:

cd <live working dir>/<environment>/<block>

i.e. cd live/prod/common

Run terragrunt apply-all. Run with --terragrunt-source-updateto force sources update to latest available revision.

All blocks at once - Local testing, iterating

Enter live directory, environment:

cd <live working dir>/<environment>

i.e. cd live/prod

Run terragrunt apply-all --terragrunt-source ../../../modules Run with --terragrunt-source-update flag to force sources update to the latest available revision.

dcshiny-arc's People

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.