Code Monkey home page Code Monkey logo

devops-journey's Introduction

DevSecOps Journey

Roadmap to be a DevSecOps Hero ๐Ÿฆธ

Build Pipeline - CI

  • Implement Build Pipeline (Continuous Integration Pipeline)
  • Use CopyFiles and PublishArtifacts Tasks in Build Pipeline

Release Pipelines - CD

  • Implement Deployment stages Dev, QA, Stage and Prod
  • In each stage implement below listed Tasks for a Ubuntu Agent
  • terraform install
  • terraform init
  • terraform validate
  • terraform plan
  • terraform apply -auto-approve
  • Test both CI CD Pipelines

Install Dependencies

Tools

Visual Studio Code GitHub Actions Azure DevOps Pipelines

Terraform and Helm that we will be using to deploy.

Create the resources in Azure use the following commands:

# Login To Azure
az login

# Create Resource Group
az group create --location region --name name-rg

# Set Subscription
az account set --subscription "subscription-id"

# Set Default Resource Group
az configure --defaults group=name-rg

# Create Storage Account
az storage account create --name name --location region --sku Standard_LRS

# Create Storage Container
az storage container create --name tfsname --account-name name

# Initialize Terraform
terraform init

# Terraform Plan
terraform plan

# Terraform Apply
terraform apply

Project Structure

api/
|
web/
kubernetes/
|
terraform/
โ”‚
โ”œโ”€โ”€ modules/
โ”‚   โ”œโ”€โ”€ aks/
โ”‚   โ””โ”€โ”€ database/
โ”œโ”€โ”€ environments/
โ”‚   โ”œโ”€โ”€ dev/
โ”‚   โ””โ”€โ”€ prod/
โ””โ”€โ”€ main.tf
โ”‚
โ”œโ”€โ”€ README.md
โ”‚
โ””โ”€โ”€ .gitignore

devops-journey's People

Contributors

luiarhs avatar

Watchers

 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.