Giter Site home page Giter Site logo

staff-infrastructure-testspoke's Introduction

Azure Landing Zone Spoke Template

This template is designed to be used programmatically to create repositories for the spokes in the Azure Landing Zone.

New Spoke Repository

The process has the following steps:

  1. Create Azure Subscriptions for DEVL, PREPROD, PROD
  2. Create Azure DevOps Project
  3. Create Service Principals/Managed Identities in Azure
  4. Create Service Connections in Azure DevOps Project
  5. Create this repository.

Azure Landing Zone

The main repository for the Azure Landing Zone, staff-infrastructure-azure-landing-zone, can be found here

If you have a Confluence account, you can look at the LLD too which, though the code should be considered the ultimate source of the truth.

The Azure Landing Zone uses Github for source control and Azure DevOps for Pipelines.

Contents

The MoJ's own format-code github action is used to format terraform code.

The templates directory has a template that the ALZ team uses for deployment Terraform code to Azure.

This template terraform-deployment.yml has two distinct run modes:

Pull Request

  • install terraform
  • run
    • terraform init
    • terraform validate
    • terraform plan
    • Plan will be posted as a comment to the PR
    • Checkov
    • If checkov detects anything, this will be posted as a comment to the PR

CI

  • install terraform
  • run
    • terraform init
    • terraform validate
    • terraform plan
    • terraform apply

The template makes use of the AddGitHubPrComment.ps1 script to post the comments to the PR.

The script will also minimize old comments, namely from previous runs of the pipeline and in order to do this, it requires a PAT from a github account with permissions to write comments.

Once the repository has been handed over to you please:

  • Edit the copy of this README.md file to document your project
  • Grant permissions to the appropriate MoJ teams
  • Setup branch protection

staff-infrastructure-testspoke's People

Contributors

reallydontask avatar

Watchers

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