Coder Social home page Coder Social logo

swinton / terraform-github-actions-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anubhavmishra/terraform-github-actions-demo

3.0 2.0 0.0 197 KB

HashiCorp Terraform Github Actions Demo for Github Satellite 2020.

HCL 65.33% HTML 34.67%

terraform-github-actions-demo's Introduction

Terraform Github Actions Demo

This repository contains Terraform configuration and Github Action workflow for Collaborative application and infrastructure workflow using GitHub Actions and HashiCorp Terraform talk at Github Satellite 2020.

Overview

Overview

Prerequisites

  • HashiCorp Terraform installed. (version: > 0.12.x)
  • AWS Account.
  • Cloudflare Account.

Optional

Terraform cloud can be used to store remote state. If you want to use the Terraform cloud remote state backend you can uncomment the code in remote.tf file.

You can generate a user api token using the guide: https://www.terraform.io/docs/cloud/users-teams-organizations/users.html#api-tokens

Configure AWS authentication

export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY=""

Configure Terraform variables

export TF_VAR_cloudflare_email="[email protected]"
export TF_VAR_cloudflare_api_token="abcdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export TF_VAR_cloudflare_zone_id="a1b2xxxxxxxxxxxxxxxxxxxxxxxxxxx"

Usage

Clone the github repository

git clone https://github.com/anubhavmishra/terraform-github-actions-demo.git

Open the terraform-github-actions-demo directory.

cd terraform-github-actions-demo

Run Terraform init.

terraform init

Run Terraform plan.

terraform plan

Run Terraform apply.

terraform apply

terraform-github-actions-demo's People

Contributors

anubhavmishra avatar swinton avatar

Stargazers

 avatar Ter Kwee Leng avatar Luis MCP Lopes 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.