SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Downloaden Sie, um offline zu lesen
AUTOMATE YOUR CLOUD
INFRASTRUCTURE DEPLOYMENT
WITH TERRAFORM
Vinod Narayanankutty, 3 Sep
ABOUT ME
Vinod Narayanankutty
Enablement Director, Biqmind
Cloud Transformation Specialist
/vinodnarayanankutty
/nvinod-net
ABOUT BIQMIND
We provide Specialist Services and Software Tools to make cloud-native possible
Cloud-native Tools
CAPE radically simplifies advanced
Kubernetes functionalities
across clouds/on-premise
Disaster Recovery, Data Mobility and
Migration, Multi-cluster deployment, CI/CD
Specialist Services
Advisory and implementation services to
bridge gaps around process, product,
and technologies
Architecture, Development,
DevSecOps, Project Management
Discovery Workshops
Focused programs that deliver practical
goals, use cases and action plans
in 1 to 3 days
Technology or
industry specific
• What is Infrastructure as Code (IaC)?
• Why Terraform and how it works?
• Terraform and Alibaba Cloud
• Scaling deployments
TODAY’S AGENDA
WHAT IS INFRASTRUCTURE AS CODE?
Infrastructure as Code:
Provisioning infrastructure through software to
achieve consistent and predictable environments
FORMATS & APPROACHES
YAML
JSON
HCL
Imperative or Procedural:FORMATS:
aliyun ecs CreateInstance 
--InstanceName myvm1 
--ImageId centos_7_03_64_40G_alibase_20170625.vhd 
--InstanceType ecs.n4.small 
Declarative:
resource "alicloud_instance" "instance" {
instance_name = " myvm1 “
image_id = " centos_7_03_64_40G_alibase_20170625.vhd "
instance_type = " ecs.n4.small “
}
IT BENEFITS
ü Automated deployment
ü Repeatable & Consistent
ü Reusable modules
ü Source Control
ü Documentation
Time Cost Quality
Better customer
experience
BUSINESS BENEFITS
$
CHALLENGES
Culture Change Learning Curve
AVAILABLE SOLUTIONS
Available on Alibaba Cloud
Resource Orchestration Service
Others
OpenAPI Explorer
TERRAFORM OVERVIEW
Easy to Use and Modular
Supports Multiple Providers
Rich Integration
Plan and Apply
WHY TERRAFORM?
HOW DOES TERRAFORM WORK?
Code
Terraform files
Terraform
Core
Providers,
Terraform Plugins
InfrastructureTerraform State
Files
• main.tf – holds your Terraform
configuration code
• terraform.tfvars – specify variables for
your code
• terraform.tfstate – state file generated by
Terraform (do not touch)
TERRAFORM FILES & FORMAT
provider "alicloud" {
version = "1.93.0"
}
variable "vpc_name" {
default = "TF-VPC-DEV"
}
resource "alicloud_vpc" "vpc" {
name = var.vpc_name
}
output “vpc_id" {
value = alicloud_vpc.vpc.id
}
Initialize Plan Apply Destroy
TERRAFORM COMMANDS
TERRAFORM CORE OPTIONS
Terraform CLI – opensource Terraform Cloud, SaaS
and
Terraform Enterprise, Self-hosted
• Part of Alibaba Cloud DevOps Solution (link)
• Alibaba Cloud provider for Terraform (link)
• Terraform Module Web GUI (link)
• Terraform Modules and Examples (link)
ALIBABA CLOUD + TERRAFORM
INFRASTRUCTURE AS CODE +
TERRAFORM
DEMO SCENARIO
VPC: 10.0.0.0/16
VSwitch
10.0.1.0/24
VSwitch
10.0.2.0/24
VSwitch
10.0.3.0/24
Subnet –
Web
Subnet –
App
Subnet –
DB
VPC: 10.0.0.0/16
VSwitch
10.0.1.0/24
Subnet –
WebApp
Create
New
Update
Existing
Clean
up
DEMO TOOLS
Terraform Code Terraform Cloud
Manage Runs
Store State Files
GitHub
Version Control
System
Alibaba Cloud
Infrastructure
Provider
PREREQUISITES & PREPARATION
1.
Alibaba Cloud
API Access Key
2.
GitHub
Repository
3.
Terraform
Workspace
TERRAFORM EXECUTION
VPC: 10.0.0.0/16
VSwitch
10.0.1.0/24
VSwitch
10.0.2.0/24
VSwitch
10.0.3.0/24
Subnet –
Web
Subnet –
App
Subnet –
DB
Deploy
Update
Destroy
• Create a Virtual
Private Cloud (VPC)
• Create Subnet-
WebApp
• Update Subnet-
WebApps to
Subnet-Web
• Create Subnets
App and DB
• Cleanup
DEPLOYMENT AT SCALE
INFRA-AS-CODE PIPELINES
Test Env Prod Env
ReportCode
Commit
Trigger
Build
Deploy
Approve
DeployReview
DISASTER RECOVERY
Plan &
Apply
Region A Region BSecured
Backup
Scheduled
Trigger
Recovery
Deploy
Infra
Recover App
& Data
MIGRATION
On-prem or
Public Cloud
Alibaba CloudSecured
Backup
Terraform
Config
Architecture
Diagram
Infra Migration
App & Data Migration
MULTICLOUD DEPLOYMENT
Alibaba Cloud
Other Cloud
On-premise
Confidential – do not distribute
TRY CAPE NOW AT
CAPE.SH
TRAINING AND CERTIFICATION
Confidential – do not distribute
CERTIFICATION
• Apsara Certification
• Cloud Native Examination Prep Course
• Sign up for October exam schedule
• HashiCorp Infrastructure Automation Certification
TRAINING
• Alibaba Cloud Video Centre
• Terraform by HashiCorp
Q&A
THANK YOU
For more information:
Vinod Narayanankutty
vinod.nara@biqmind.com
© Copyright 2020 by Biqmind Pte. Ltd. All Rights Reserved.
No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system or translated into any language in any form by any
means without the written permission of Biqmind.
All contents are subject to change. While every precaution has been taken in the preparation of this document, Biqmind assumes no responsibility for
errors, omissions, or for damages resulting from the use of the information herein.
Products or corporate names may be trademarks or registered trademarks of other companies and are used only for the explanation and to the owners’
benefit, without intent to infringe.
We own all rights, titles, and interests in perpetuity to all intellectual properties which are, in whole or in part, described in this proposal. No parties shall
have any claim to or have any right, title or interest in them of any kind or nature.
Intellectual properties shall mean any idea, invention, knowledge, information, document, item, property, matter or issue, including without limitation to
the following:
• All intellectual property rights (whether owned exclusively by either Biqmind or related entities, or jointly with other parties or whether currently owned
by either Biqmind or related entities, or developed by Biqmind or related entities in the future).
• All Inventions contemplated, developed and accomplished by Biqmind or the related entities; For the purpose of this clause, “Invention” shall mean any
and all inventions (whether patentable, patented or not), ideas, and discoveries, including improvements, original works of authorship, designs,
formulas, processes, techniques, know-how computer programs or portions thereof, databases, trade secrets and proprietary information,
documentation, and materials made, created, conceived or reduced to practice.
Biqmind and related entities’ respective trade secrets and business information, including but not limited to all development plans and prospectuses,
technical files, technical diagrams, drawings, formulas, models and relevant technical articles, technical reports, all quality management methods, pricing
methods, sales methods and customers’ materials.
Confidential – do not distribute
Credits:
Slides 14, 21 : Icons made by Smashicons from Flaticon
Slides 25, 26: Icons made by Freepik from Flaticon
Slides 27, 28: Icons made by srip from Flaticon
Confidential – do not distribute

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Terraform modules and best-practices - September 2018
Terraform modules and best-practices - September 2018Terraform modules and best-practices - September 2018
Terraform modules and best-practices - September 2018
 
Scaling terraform
Scaling terraformScaling terraform
Scaling terraform
 
Deploying Azure DevOps using Terraform
Deploying Azure DevOps using TerraformDeploying Azure DevOps using Terraform
Deploying Azure DevOps using Terraform
 
Case Study: Using Terraform and Packer to deploy go applications to AWS
Case Study: Using Terraform and Packer to deploy go applications to AWSCase Study: Using Terraform and Packer to deploy go applications to AWS
Case Study: Using Terraform and Packer to deploy go applications to AWS
 
Terraform
TerraformTerraform
Terraform
 
Comprehensive Terraform Training
Comprehensive Terraform TrainingComprehensive Terraform Training
Comprehensive Terraform Training
 
Best Practices of Infrastructure as Code with Terraform
Best Practices of Infrastructure as Code with TerraformBest Practices of Infrastructure as Code with Terraform
Best Practices of Infrastructure as Code with Terraform
 
Using the Terraform Enterprise GUI is perfect to start working with Terraform...
Using the Terraform Enterprise GUI is perfect to start working with Terraform...Using the Terraform Enterprise GUI is perfect to start working with Terraform...
Using the Terraform Enterprise GUI is perfect to start working with Terraform...
 
Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019
 
Terraform Q&A - HashiCorp User Group Oslo
Terraform Q&A - HashiCorp User Group OsloTerraform Q&A - HashiCorp User Group Oslo
Terraform Q&A - HashiCorp User Group Oslo
 
Building infrastructure as code using Terraform - DevOps Krakow
Building infrastructure as code using Terraform - DevOps KrakowBuilding infrastructure as code using Terraform - DevOps Krakow
Building infrastructure as code using Terraform - DevOps Krakow
 
Terraform modules and some of best-practices - March 2019
Terraform modules and some of best-practices - March 2019Terraform modules and some of best-practices - March 2019
Terraform modules and some of best-practices - March 2019
 
AWS DevOps - Terraform, Docker, HashiCorp Vault
AWS DevOps - Terraform, Docker, HashiCorp VaultAWS DevOps - Terraform, Docker, HashiCorp Vault
AWS DevOps - Terraform, Docker, HashiCorp Vault
 
Transforming Infrastructure into Code - Importing existing cloud resources u...
Transforming Infrastructure into Code  - Importing existing cloud resources u...Transforming Infrastructure into Code  - Importing existing cloud resources u...
Transforming Infrastructure into Code - Importing existing cloud resources u...
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as Code
 
Infrastructure as Code: Introduction to Terraform
Infrastructure as Code: Introduction to TerraformInfrastructure as Code: Introduction to Terraform
Infrastructure as Code: Introduction to Terraform
 
Automated Testing for Terraform, Docker, Packer, Kubernetes, and More
Automated Testing for Terraform, Docker, Packer, Kubernetes, and MoreAutomated Testing for Terraform, Docker, Packer, Kubernetes, and More
Automated Testing for Terraform, Docker, Packer, Kubernetes, and More
 
Heat and its resources
Heat and its resourcesHeat and its resources
Heat and its resources
 
Terraform – Infrastructure as Code (Kielux'18)
Terraform – Infrastructure as Code (Kielux'18)Terraform – Infrastructure as Code (Kielux'18)
Terraform – Infrastructure as Code (Kielux'18)
 
Terraform Concepts
Terraform ConceptsTerraform Concepts
Terraform Concepts
 

Ähnlich wie [Alibaba Cloud Singapore Community Meetup Webinar, 3 Sep 2020] Automate Your Cloud Infrastructure Deployment with Terraform

Ähnlich wie [Alibaba Cloud Singapore Community Meetup Webinar, 3 Sep 2020] Automate Your Cloud Infrastructure Deployment with Terraform (20)

Improving Your Company’s Health with Middleware Takeout
Improving Your Company’s Health with Middleware TakeoutImproving Your Company’s Health with Middleware Takeout
Improving Your Company’s Health with Middleware Takeout
 
Velero & Beyond: Backup & Restore for Kubernetes Applications (Cloud Native S...
Velero & Beyond: Backup & Restore for Kubernetes Applications (Cloud Native S...Velero & Beyond: Backup & Restore for Kubernetes Applications (Cloud Native S...
Velero & Beyond: Backup & Restore for Kubernetes Applications (Cloud Native S...
 
CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018
 
Tampere Docker meetup - Happy 5th Birthday Docker
Tampere Docker meetup - Happy 5th Birthday DockerTampere Docker meetup - Happy 5th Birthday Docker
Tampere Docker meetup - Happy 5th Birthday Docker
 
Business and IT agility through DevOps and microservice architecture powered ...
Business and IT agility through DevOps and microservice architecture powered ...Business and IT agility through DevOps and microservice architecture powered ...
Business and IT agility through DevOps and microservice architecture powered ...
 
Hybrid Cloud DevOps with Apprenda and UrbanCode Deploy
Hybrid Cloud DevOps with Apprenda and UrbanCode DeployHybrid Cloud DevOps with Apprenda and UrbanCode Deploy
Hybrid Cloud DevOps with Apprenda and UrbanCode Deploy
 
Infrastructure as Code in Large Scale Organizations
Infrastructure as Code in Large Scale OrganizationsInfrastructure as Code in Large Scale Organizations
Infrastructure as Code in Large Scale Organizations
 
Programming the world with Docker
Programming the world with DockerProgramming the world with Docker
Programming the world with Docker
 
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
A Love Story with Kubevirt and Backstage from Cloud Native NoVA meetup Feb 2024
 
Getting Started with Docker - Nick Stinemates
Getting Started with Docker - Nick StinematesGetting Started with Docker - Nick Stinemates
Getting Started with Docker - Nick Stinemates
 
Docker Birthday #5 Meetup Cluj - Presentation
Docker Birthday #5 Meetup Cluj - PresentationDocker Birthday #5 Meetup Cluj - Presentation
Docker Birthday #5 Meetup Cluj - Presentation
 
Containers and the Docker EE Difference and usecases
Containers and the Docker EE Difference and usecasesContainers and the Docker EE Difference and usecases
Containers and the Docker EE Difference and usecases
 
Docker Bday #5, SF Edition: Introduction to Docker
Docker Bday #5, SF Edition: Introduction to DockerDocker Bday #5, SF Edition: Introduction to Docker
Docker Bday #5, SF Edition: Introduction to Docker
 
DevOps LA Meetup Intro to Habitat
DevOps LA Meetup Intro to HabitatDevOps LA Meetup Intro to Habitat
DevOps LA Meetup Intro to Habitat
 
[Srijan Wednesday Webinars] How to Build a Cloud Native Platform for Enterpri...
[Srijan Wednesday Webinars] How to Build a Cloud Native Platform for Enterpri...[Srijan Wednesday Webinars] How to Build a Cloud Native Platform for Enterpri...
[Srijan Wednesday Webinars] How to Build a Cloud Native Platform for Enterpri...
 
Cloud to Edge
Cloud to EdgeCloud to Edge
Cloud to Edge
 
Docker 之道 Modernize Traditional Applications with 无为 Create New Cloud Native ...
Docker 之道 Modernize Traditional Applications with 无为 Create New Cloud Native ...Docker 之道 Modernize Traditional Applications with 无为 Create New Cloud Native ...
Docker 之道 Modernize Traditional Applications with 无为 Create New Cloud Native ...
 
Netflix Cloud Architecture and Open Source
Netflix Cloud Architecture and Open SourceNetflix Cloud Architecture and Open Source
Netflix Cloud Architecture and Open Source
 
Elevate Your Continuous Delivery Strategy Above the Rolling Clouds (Interconn...
Elevate Your Continuous Delivery Strategy Above the Rolling Clouds (Interconn...Elevate Your Continuous Delivery Strategy Above the Rolling Clouds (Interconn...
Elevate Your Continuous Delivery Strategy Above the Rolling Clouds (Interconn...
 
Gilmore, Palani [InfluxData] | Use Case: Monitoring / Observability | InfluxD...
Gilmore, Palani [InfluxData] | Use Case: Monitoring / Observability | InfluxD...Gilmore, Palani [InfluxData] | Use Case: Monitoring / Observability | InfluxD...
Gilmore, Palani [InfluxData] | Use Case: Monitoring / Observability | InfluxD...
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

[Alibaba Cloud Singapore Community Meetup Webinar, 3 Sep 2020] Automate Your Cloud Infrastructure Deployment with Terraform

  • 1. AUTOMATE YOUR CLOUD INFRASTRUCTURE DEPLOYMENT WITH TERRAFORM Vinod Narayanankutty, 3 Sep
  • 2. ABOUT ME Vinod Narayanankutty Enablement Director, Biqmind Cloud Transformation Specialist /vinodnarayanankutty /nvinod-net
  • 3. ABOUT BIQMIND We provide Specialist Services and Software Tools to make cloud-native possible Cloud-native Tools CAPE radically simplifies advanced Kubernetes functionalities across clouds/on-premise Disaster Recovery, Data Mobility and Migration, Multi-cluster deployment, CI/CD Specialist Services Advisory and implementation services to bridge gaps around process, product, and technologies Architecture, Development, DevSecOps, Project Management Discovery Workshops Focused programs that deliver practical goals, use cases and action plans in 1 to 3 days Technology or industry specific
  • 4. • What is Infrastructure as Code (IaC)? • Why Terraform and how it works? • Terraform and Alibaba Cloud • Scaling deployments TODAY’S AGENDA
  • 6. Infrastructure as Code: Provisioning infrastructure through software to achieve consistent and predictable environments
  • 7. FORMATS & APPROACHES YAML JSON HCL Imperative or Procedural:FORMATS: aliyun ecs CreateInstance --InstanceName myvm1 --ImageId centos_7_03_64_40G_alibase_20170625.vhd --InstanceType ecs.n4.small Declarative: resource "alicloud_instance" "instance" { instance_name = " myvm1 “ image_id = " centos_7_03_64_40G_alibase_20170625.vhd " instance_type = " ecs.n4.small “ }
  • 8. IT BENEFITS ü Automated deployment ü Repeatable & Consistent ü Reusable modules ü Source Control ü Documentation
  • 9. Time Cost Quality Better customer experience BUSINESS BENEFITS $
  • 11. AVAILABLE SOLUTIONS Available on Alibaba Cloud Resource Orchestration Service Others OpenAPI Explorer
  • 13. Easy to Use and Modular Supports Multiple Providers Rich Integration Plan and Apply WHY TERRAFORM?
  • 14. HOW DOES TERRAFORM WORK? Code Terraform files Terraform Core Providers, Terraform Plugins InfrastructureTerraform State
  • 15. Files • main.tf – holds your Terraform configuration code • terraform.tfvars – specify variables for your code • terraform.tfstate – state file generated by Terraform (do not touch) TERRAFORM FILES & FORMAT provider "alicloud" { version = "1.93.0" } variable "vpc_name" { default = "TF-VPC-DEV" } resource "alicloud_vpc" "vpc" { name = var.vpc_name } output “vpc_id" { value = alicloud_vpc.vpc.id }
  • 16. Initialize Plan Apply Destroy TERRAFORM COMMANDS
  • 17. TERRAFORM CORE OPTIONS Terraform CLI – opensource Terraform Cloud, SaaS and Terraform Enterprise, Self-hosted
  • 18. • Part of Alibaba Cloud DevOps Solution (link) • Alibaba Cloud provider for Terraform (link) • Terraform Module Web GUI (link) • Terraform Modules and Examples (link) ALIBABA CLOUD + TERRAFORM
  • 19. INFRASTRUCTURE AS CODE + TERRAFORM
  • 20. DEMO SCENARIO VPC: 10.0.0.0/16 VSwitch 10.0.1.0/24 VSwitch 10.0.2.0/24 VSwitch 10.0.3.0/24 Subnet – Web Subnet – App Subnet – DB VPC: 10.0.0.0/16 VSwitch 10.0.1.0/24 Subnet – WebApp Create New Update Existing Clean up
  • 21. DEMO TOOLS Terraform Code Terraform Cloud Manage Runs Store State Files GitHub Version Control System Alibaba Cloud Infrastructure Provider
  • 22. PREREQUISITES & PREPARATION 1. Alibaba Cloud API Access Key 2. GitHub Repository 3. Terraform Workspace
  • 23. TERRAFORM EXECUTION VPC: 10.0.0.0/16 VSwitch 10.0.1.0/24 VSwitch 10.0.2.0/24 VSwitch 10.0.3.0/24 Subnet – Web Subnet – App Subnet – DB Deploy Update Destroy • Create a Virtual Private Cloud (VPC) • Create Subnet- WebApp • Update Subnet- WebApps to Subnet-Web • Create Subnets App and DB • Cleanup
  • 25. INFRA-AS-CODE PIPELINES Test Env Prod Env ReportCode Commit Trigger Build Deploy Approve DeployReview
  • 26. DISASTER RECOVERY Plan & Apply Region A Region BSecured Backup Scheduled Trigger Recovery Deploy Infra Recover App & Data
  • 27. MIGRATION On-prem or Public Cloud Alibaba CloudSecured Backup Terraform Config Architecture Diagram Infra Migration App & Data Migration
  • 29. Confidential – do not distribute TRY CAPE NOW AT CAPE.SH
  • 30. TRAINING AND CERTIFICATION Confidential – do not distribute CERTIFICATION • Apsara Certification • Cloud Native Examination Prep Course • Sign up for October exam schedule • HashiCorp Infrastructure Automation Certification TRAINING • Alibaba Cloud Video Centre • Terraform by HashiCorp
  • 31. Q&A
  • 32. THANK YOU For more information: Vinod Narayanankutty vinod.nara@biqmind.com
  • 33. © Copyright 2020 by Biqmind Pte. Ltd. All Rights Reserved. No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system or translated into any language in any form by any means without the written permission of Biqmind. All contents are subject to change. While every precaution has been taken in the preparation of this document, Biqmind assumes no responsibility for errors, omissions, or for damages resulting from the use of the information herein. Products or corporate names may be trademarks or registered trademarks of other companies and are used only for the explanation and to the owners’ benefit, without intent to infringe. We own all rights, titles, and interests in perpetuity to all intellectual properties which are, in whole or in part, described in this proposal. No parties shall have any claim to or have any right, title or interest in them of any kind or nature. Intellectual properties shall mean any idea, invention, knowledge, information, document, item, property, matter or issue, including without limitation to the following: • All intellectual property rights (whether owned exclusively by either Biqmind or related entities, or jointly with other parties or whether currently owned by either Biqmind or related entities, or developed by Biqmind or related entities in the future). • All Inventions contemplated, developed and accomplished by Biqmind or the related entities; For the purpose of this clause, “Invention” shall mean any and all inventions (whether patentable, patented or not), ideas, and discoveries, including improvements, original works of authorship, designs, formulas, processes, techniques, know-how computer programs or portions thereof, databases, trade secrets and proprietary information, documentation, and materials made, created, conceived or reduced to practice. Biqmind and related entities’ respective trade secrets and business information, including but not limited to all development plans and prospectuses, technical files, technical diagrams, drawings, formulas, models and relevant technical articles, technical reports, all quality management methods, pricing methods, sales methods and customers’ materials. Confidential – do not distribute
  • 34. Credits: Slides 14, 21 : Icons made by Smashicons from Flaticon Slides 25, 26: Icons made by Freepik from Flaticon Slides 27, 28: Icons made by srip from Flaticon Confidential – do not distribute