Slide 1

Slide 1 text

Copyright © 2019 HashiCorp Collaborative Application and Infrastructure workflow using GitHub Actions and HashiCorp Terraform Anubhav Mishra Technical Advisor of the CTO, HashiCorp

Slide 2

Slide 2 text

Anubhav Mishra Technical Advisor to the CTO, HashiCorp @build1point0 | anubhavmishra

Slide 3

Slide 3 text

Anubhav Mishra Technical Advisor to the CTO, HashiCorp @build1point0 | anubhavmishra Atlan&s

Slide 4

Slide 4 text

About HashiCorp Leading Cloud Infrastructure Automation Our software stack enables the provisioning, securing, connecting and running of apps and the infrastructure to support them. We unlock the cloud operating model for every business Founded 2012 Employees 900+ Funding 349M

Slide 5

Slide 5 text

⁄ The Transition 
 to DevOps

Slide 6

Slide 6 text

The Technology Transition Traditional Datacenter “Static” Dedicated
 Infrastructure Modern Datacenter “Dynamic” AWS Azure GCP + + + Private Cloud +

Slide 7

Slide 7 text

The Process Transition Traditional Datacenter “Static” Dedicated
 Infrastructure Modern Datacenter “Dynamic” AWS Azure GCP + + + Private Cloud + ITIL / ITSM TICKET DRIVEN SERVICE DEVOPS API DRIVEN SELF-SERVICE

Slide 8

Slide 8 text

Why?

Slide 9

Slide 9 text

Increasing Developer Velocity OPERATIONS 
 TEAM PLATFORM
 TEAM SECURITY TEAM DEVELOPER 
 TEAM TIME TO VALUE

Slide 10

Slide 10 text

DevOps Process OPERATIONS
 TEAM PLATFORM TEAM SECURITY TEAM API API API DEVELOPER TEAM

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

HashiCorp Terraform Goal Provide a Unified Workflow Using Infrastructure as Code to Iterate Over Infrastructure Safely that is Capable of Provisioning Anything Anywhere.

Slide 13

Slide 13 text

Cloud Provisioning with Terraform Core + Provider Model ▪ Expose the unique services of each infrastructure platform, but provide a consistent workflow


Slide 14

Slide 14 text

Cloud Provisioning with Terraform Core + Provider Model ▪ Expose the unique services of each infrastructure platform, but provide a consistent workflow ▪ 200+ Providers exist for any infrastructure or application element – Enabled by the open source model of 1200+ contributors


Slide 15

Slide 15 text

Managing Github with Terraform CODE EDITOR resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" } resource "github_repository" "example" { name = "example" description = "My awesome codebase" private = true template { owner = "github" repository = "terraform-module-template" } }

Slide 16

Slide 16 text

Terraform Workflow DEVELOPER/ OPERATOR

Slide 17

Slide 17 text

Terraform Workflow DEVELOPER/ OPERATOR

Slide 18

Slide 18 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN

Slide 19

Slide 19 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy.

Slide 20

Slide 20 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy.

Slide 21

Slide 21 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN TERRAFORM APPLY $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy.

Slide 22

Slide 22 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN TERRAFORM APPLY $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy. $ terraform apply ….. 
 Apply complete!

Slide 23

Slide 23 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN TERRAFORM APPLY $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy. $ terraform apply ….. 
 Apply complete!

Slide 24

Slide 24 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN TERRAFORM APPLY $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy. $ terraform apply ….. 
 Apply complete!

Slide 25

Slide 25 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN TERRAFORM APPLY $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy. $ terraform apply ….. 
 Apply complete!

Slide 26

Slide 26 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN API/GUI TERRAFORM APPLY $ terraform plan + resource "github_repository" “example” ….. 
 Plan: 1 to add, 0 to change, 0 to destroy. $ terraform apply ….. 
 Apply complete!

Slide 27

Slide 27 text

Collaborating with Terraform DEVELOPERS

Slide 28

Slide 28 text

Collaborating with Terraform DEVELOPERS resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 29

Slide 29 text

Collaborating with Terraform DEVELOPERS resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 30

Slide 30 text

Collaborating with Terraform GITHUB ACCESS DEVELOPERS resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 31

Slide 31 text

Collaborating with Terraform GITHUB ACCESS DEVELOPERS OPERATIONS TEAM resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 32

Slide 32 text

Collaborating with Terraform GITHUB ACCESS DEVELOPERS OPERATIONS TEAM resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 33

Slide 33 text

Collaborating with Terraform GITHUB ACCESS DEVELOPERS OPERATIONS TEAM resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 34

Slide 34 text

Collaborating with Terraform GITHUB ACCESS DEVELOPERS OPERATIONS TEAM resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 35

Slide 35 text

Collaborating with Terraform GITHUB ACCESS DEVELOPERS OPERATIONS TEAM resource "github_membership" "membership_for_some_user" { username = "admin" role = "owner" }

Slide 36

Slide 36 text

Terraform Workflow DEVELOPER/ OPERATOR TERRAFORM PLAN API/GUI TERRAFORM APPLY

Slide 37

Slide 37 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR

Slide 38

Slide 38 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR

Slide 39

Slide 39 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE

Slide 40

Slide 40 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW

Slide 41

Slide 41 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW

Slide 42

Slide 42 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW

Slide 43

Slide 43 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW TERRAFORM CLOUD

Slide 44

Slide 44 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW TERRAFORM CLOUD

Slide 45

Slide 45 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW TERRAFORM CLOUD

Slide 46

Slide 46 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW TERRAFORM CLOUD

Slide 47

Slide 47 text

Terraform and GitHub Manage Infrastructure and Application Lifecycles DEVELOPER/ OPERATOR TERRAFORM CLOUD INFRASTRUCTURE AS CODE TERRAFORM PLAN REVIEW CLOUD TERRAFORM CLOUD

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Announcing Terraform GitHub Actions 1.0

Slide 50

Slide 50 text

Announcing Terraform GitHub Actions 1.0

Slide 51

Slide 51 text

Demo

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

Highlights Terraform Github Actions Available in the Github Marketplace https://git.io/terraform-github-actions Demo code https://git.io/terraform-github-satellite-demo

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

Thank You [email protected] www.hashicorp.com Ask me anything @build1point0