Giter Club home page Giter Club logo

azure-devops-terraform-pipeline-template's Introduction

Introduction

Azure DevOps multi-stage deployment pipeline for Terraform configuration.

How to use it

If you have Terraform configuration in your project ready to be deployed, you need to create azure-pipelines.yml file in your repository root directory and add a similar configuration as below.

pool: your-agent-pool-name

trigger:
  batch: true
  branches:
    exclude:
      - refs/heads/feature*

resources:
  repositories:
    - repository: azure-devops-terraform-pipeline-template
      type: github
      name: viktors-telle/azure-devops-terraform-pipeline-template
      ref: "refs/heads/master"

stages:
  - template: main.yml@viktors-telle/azure-devops-terraform-pipeline-template
    parameters:
      container_name: blob_container_name
      container_key: blob_file_name
      variable_group_name: project_variable_group_name

container_name - the blob container name where project-related Terraform state files are stored.

container_key - the blob name of Terraform state file. For example, storage-acccount, redis-cache, etc.

variable_group_name - [optional] Azure DevOps variable group where project-related variables are stored and should be transformed during deployment. If you want to replace variable values during pipeline execution then you need to create a new variable group in Azure DevOps for each environment separately and use environment postfix, e.g. resource-group-dev, resource-group-stage, resource-group-prod and pass the name without postfix. The rest of the parameters will come from the Azure DevOps variable group terraform-[environment].

azure-devops-terraform-pipeline-template's People

Contributors

viktors-telle avatar

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.