Code Monkey home page Code Monkey logo

samplerepo1's Introduction

Terraform Scaffolding

Introduction

This repo contains a fully working project structure that deploys a terraform project along with a C# Azure function. The repo also contains the CI/CD pipeline to

  1. deploy the code into 3 enviiornments (dev -> test -> prod)
  2. deploy the Azure function code automatically to Azure on successfull build and test and after the PR merges
  3. When there is a terraform change on a PR, it evaulates the pkan and writes a comment on the PR for reviewers to see planned changes
  4. Has an end to end battery of tests that runs on each PR
  5. Utilizes github environments to facilitate deploymnet into the 3 stages of pipelines (dev -> test -> prod)

Quick start

This repo is a skeleton for you to start your project that uses Azure and Terraform to manage the infrastructure, to start:

  1. Clone this repo.
  2. In your cloned github repo, modify the following parameters with a service principal that has permission to deploy your infrastrucure
    
    

ARM_CLIENT_ID: 'e54c489c-92a4-4b25-a005-1710958dda46' ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} ARM_SUBSCRIPTION_ID: 'ec18dca1-0751-4307-bbac-6150896ac498' ARM_TENANT_ID: '72f988bf-86f1-41af-91ab-2d7cd011db47'


3. Add a secret in github secrets
4. Create 3 enviornments

samplerepo1's People

Contributors

mhassaninmsft avatar nexilus18 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.