Giter VIP home page Giter VIP logo

terraform-azure-packer-framework's Introduction

terraform-azure-packer-framework

GitHub actions, Azure infrastructure, and packer library

What is this?

This project does three things,

  • Terraform project creates the Shared Image Gallery in your Azure subscription to store images build by Packer
  • GitHub actions to validate and build Packer templates into Azure images. Images are built whenever a commit or pull merges into the main branch, may be a bit of overkill so you can remove these if you want
  • Packer templates built during the GitHub action workflow.

How to run - Terraform

  1. Go to app.terraform.io and create a Terraform Cloud (TFC) free account. Then create a new Workspace we will use to run this project.

  2. Open backend.tf and change the organization and workspace name to a workspace you created in TFC.

  3. Create a new Service Principal in Azure. This will be used to run your Terraform project in TFC. Follow the steps in one of these docs:

  1. Capture the client_id, client_secret, tenant_id, and subscription_id from the prior steps. Go to the TFC workspace and in the Variables tab, add these variables with the correct values. You will also need one more variable.

  2. Make sure the TFC Workspace is mapped to this repo. Just follow the steps at Variables > Version Control

(optional), if you just want to deploy quickly you can delete backend.tf and run your terraform init & terraform apply locally. Just make sure you set or pass the values of the variables defined in variables.tf

terraform-azure-packer-framework's People

Contributors

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