Understanding the AWS Provider for Terraform

A presentation at Bangalore HashiCorp User - May 2020 in May 2020 in by Kerim Satirli

Slide 1

Slide 1

Understanding the AWS Provider for Terraform

Slide 2

Slide 2

Kerim Satirli (He/Him) Developer Advocate at HashiCorp

Slide 3

Slide 3

@ksatirli on GitHub and Twitter

Slide 4

Slide 4

Infrastructure as Code

  • executable documentation
  • enables collaboration
  • safe and predictable

Slide 5

Slide 5

Slide 6

Slide 6

Slide 7

Slide 7

Terraform

  • 125+ Official Providers (AWS, GCP, Docker, etc.)
  • 175+ Community Providers (1Password, Stripe, Unifi, etc.)

Slide 8

Slide 8

Slide 9

Slide 9

Slide 10

Slide 10

Slide 11

Slide 11

Slide 12

Slide 12

Slide 13

Slide 13

Slide 14

Slide 14

Slide 15

Slide 15

Slide 16

Slide 16

Slide 17

Slide 17

Slide 18

Slide 18

Slide 19

Slide 19

Slide 20

Slide 20

Slide 21

Slide 21

Slide 22

Slide 22

Slide 23

Slide 23

Slide 24

Slide 24

Slide 25

Slide 25

Slide 26

Slide 26

Variable Definition Files

  • contain key-value definitions of variables
  • automatically loaded if named:
    • “terraform.tfvars” or “terraform.tfvars.json”
    • “.auto.tfvars” or “.auto.tfvars.json”

Slide 27

Slide 27

Slide 28

Slide 28

Slide 29

Slide 29

Managing AWS with Terraform

Slide 30

Slide 30

AWS Provider for Terraform (ChangeLog

Slide 31

Slide 31

Slide 32

Slide 32

Slide 33

Slide 33

Slide 34

Slide 34

Slide 35

Slide 35

Slide 36

Slide 36

Slide 37

Slide 37

Slide 38

Slide 38

Slide 39

Slide 39

Slide 40

Slide 40

Slide 41

Slide 41

Slide 42

Slide 42

Slide 43

Slide 43

Slide 44

Slide 44

Slide 45

Slide 45

Slide 46

Slide 46

Slide 47

Slide 47

Slide 48

Slide 48

Terraform lifecycle

  • terraform init
  • terraform fmt
  • terraform validate
  • terraform plan -out="terraform.tfplan"
  • terraform apply "terraform.tfplan"
  • terraform plan -destroy

Slide 49

Slide 49

Scaling Terraform

Slide 50

Slide 50

Slide 51

Slide 51

Slide 52

Slide 52

Slide 53

Slide 53

Review

  • Providers
  • Lifecycle
  • State

Slide 54

Slide 55

Slide 55

HashiConf Digital:

Slide 56

Slide 56

Thank You