Code Monkey home page Code Monkey logo

azure.moonglade.tf's Introduction

 using GitHub Actions Validate、Deploy for Terraform Auto CI/CD

Azure.Moonglade.TF

Description

Provision Web App, Storage Account, CDN Sql Server Sql DataBase

This example provides recommended settings:

  • Web App Deployment
  • Storage Account
  • CDN
  • Sql Server
  • Sql DataBase
  • Resource Group

📦 Deployment

It is recommended to use stable code from Release rather than master branch.

Docker Images from ediwang/moonglade of Docker Hub

☁ Use Terraform Full Deploy on Azure (Recommend)

Code directory structure description

  • src

    • import: There had some already existing resources via manual creation when initially create resources via terraform . You need to mark these resource and use terraform import to include them in codes.
    • model: Provision and asseblme the actual infrastructure from Terraform projects
    • module: Following best practices for Terraform template authoring, create a template deploying infrastructure components into Azure. You can custom some minimum size common components(also call as module) in this folder. In this project most of common modules from microsoft official module templates.

Get started with Terraform Cloud

  1. download and install the [Terraform CLI]

    choco install terraform

    or

    reference linking: https://www.terraform.io/downloads.html

  2. create a service principal in Azure and add the following keys to the workspace's environment variables

    • ARM_CLIENT_ID
    • ARM_CLIENT_SECRET SENSITIVE
    • ARM_TENANT_ID
    • ARM_SUBSCRIPTION_ID
  3. setings service principal Environment Variables on Windows System PC

    setx ARM_SUBSCRIPTION_ID xxxx-xxxx-xxxx-xxxx

    setx ARM_CLIENT_ID xxxx-xxxx-xxxx-xxxx

    setx ARM_CLIENT_SECRET xxxx-xxxx-xxxx-xxxx

    setx ARM_TENANT_ID xxxx-xxxx-xxxx-xxxx

  4. plan, deploy, and destroy

    step into the working directory

    cd scr/model/model

    terraform plan

    terraform apply or 'terraform apply -auto-approve'

    terraform destroy

Use this doc and get your Terraform on!

azure.moonglade.tf's People

Contributors

yunqian44 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos 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.