Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Terraform meetup 02_workspace_12_factorapp

2,080 views

Published on

Terraform meetup 02_workspace_12_factorapp

Published in: Technology
  • Be the first to comment

Terraform meetup 02_workspace_12_factorapp

  1. 1. Terraform Workspace Meily Hikaru Miyazawa
  2. 2. 2 Agenda Terraform WorkSpace WorkSpace /Terraform 12FactorApp dev Workspace
  3. 3. 3 Hikaru Miyazawa 2016/10 2017/3
 OJT 2017/4 2017/11
 SRE 
 2017/11 
 Meily ,DQR/DQ ,TEPPEN, ( )
 CircleCI,Fargate,Ansible,Terraform,Prometheus
  4. 4. 4 Meily Infrastructure as Code Terraform Meily 2017 12 ※Route53 S3 ECS 
 HashiCorp 

  5. 5. 6 Terraform Workspace
  6. 6. 7 Workspace Terraform workspace Usage: terraform workspace <subcommand> [options] [args] list - workspace select - workspace new - workspace delete - workspace show - workspace
  7. 7. 7 Workspace Terraform workspace terraform workspace new dev terraform workspace new stg terraform workspace new prd terraform workspace list default dev * prd stg
  8. 8. 7 Workspace Terraform workspace terraform workspace select dev terrraform workspace show terraform plan terraform apply
 prd stg select,show,plan,apply → CircleCI
  9. 9. 7 State file backet_name/env:/ backet_name/env:/ / /terraform.tfstate
  10. 10. 7 output backet_name/env:/outputs.tf backet_name/env:/ / /terraform.tfstate state output
  11. 11. 5 Terraform WorkSpace 12FactorApp Heroku SaaS Martin Fowler Patterns of Enterprise Application Architecture Refactoring
  12. 12. 5 Terraform 12FactorApp 12FactorApp I. 1 II. III. IV. V. 3 VI. 1
  13. 13. 5 Terraform 12FactorApp 12FactorApp VII. VIII. IX. X. / XI. XII. 1
  14. 14. 5 Terraform 12FactorApp 12FactorApp I. terraform github II. Terraform CI Meily CircleCI III. ←workspace Workspace X. / ←workspace dev,stg,prd workspace XI. Terraform CircleCI
  15. 15. 7 workspace .
  16. 16. 7 workspace .( )
  17. 17. 7 Resource_count resource
  18. 18. 7 resource count EC2 EC2 api
  19. 19. 5 Terraform 12FactorApp 12FactorApp X. /
  20. 20. 7 dev Workspace Terraform 0 resource_count 1
  21. 21. 7 Workspace workspace
  22. 22. 14 workspace Resource_count variables Terraform
  23. 23. 15 URL 
 
 Terraform Workspace https://www.terraform.io/docs/state/workspaces.html Twelve-Factor App
 https://12factor.net/ja/
  24. 24. 16 twitter@48hikaru214

×