SlideShare a Scribd company logo
1 of 34
Download to read offline
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

More Related Content

What's hot

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 2018Anton Babenko
 
Scaling terraform
Scaling terraformScaling terraform
Scaling terraformPaolo Tonin
 
Deploying Azure DevOps using Terraform
Deploying Azure DevOps using TerraformDeploying Azure DevOps using Terraform
Deploying Azure DevOps using TerraformAdin Ermie
 
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 AWSPatrick Bolduan
 
Comprehensive Terraform Training
Comprehensive Terraform TrainingComprehensive Terraform Training
Comprehensive Terraform TrainingYevgeniy Brikman
 
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 TerraformDevOps.com
 
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...Mitchell Pronschinske
 
Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Terraform Best Practices - DevOps Unicorns 2019
Terraform Best Practices - DevOps Unicorns 2019Anton Babenko
 
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 OsloAnton Babenko
 
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 KrakowAnton Babenko
 
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 2019Anton Babenko
 
AWS DevOps - Terraform, Docker, HashiCorp Vault
AWS DevOps - Terraform, Docker, HashiCorp VaultAWS DevOps - Terraform, Docker, HashiCorp Vault
AWS DevOps - Terraform, Docker, HashiCorp VaultGrzegorz Adamowicz
 
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...Shih Oon Liong
 
Terraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeTerraform -- Infrastructure as Code
Terraform -- Infrastructure as CodeMartin Schütte
 
Infrastructure as Code: Introduction to Terraform
Infrastructure as Code: Introduction to TerraformInfrastructure as Code: Introduction to Terraform
Infrastructure as Code: Introduction to TerraformAlexander Popov
 
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 MoreC4Media
 
Heat and its resources
Heat and its resourcesHeat and its resources
Heat and its resourcesSangeeth Kumar
 
Terraform – Infrastructure as Code (Kielux'18)
Terraform – Infrastructure as Code (Kielux'18)Terraform – Infrastructure as Code (Kielux'18)
Terraform – Infrastructure as Code (Kielux'18)Martin Schütte
 

What's hot (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
 

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

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 TakeoutVMware Tanzu
 
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...Chakradhar Rao Jonagam
 
CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018CNCF Introduction - Feb 2018
CNCF Introduction - Feb 2018Krishna-Kumar
 
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 DockerSakari Hoisko
 
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 ...Lucas Jellema
 
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 DeployClaudia Ring
 
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 OrganizationsXebiaLabs
 
Programming the world with Docker
Programming the world with DockerProgramming the world with Docker
Programming the world with DockerPatrick Chanezon
 
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 2024Cloud Native NoVA
 
Getting Started with Docker - Nick Stinemates
Getting Started with Docker - Nick StinematesGetting Started with Docker - Nick Stinemates
Getting Started with Docker - Nick StinematesAtlassian
 
Docker Birthday #5 Meetup Cluj - Presentation
Docker Birthday #5 Meetup Cluj - PresentationDocker Birthday #5 Meetup Cluj - Presentation
Docker Birthday #5 Meetup Cluj - PresentationAlex Vranceanu
 
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 usecasesAshnikbiz
 
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 DockerDocker, Inc.
 
DevOps LA Meetup Intro to Habitat
DevOps LA Meetup Intro to HabitatDevOps LA Meetup Intro to Habitat
DevOps LA Meetup Intro to HabitatJessica DeVita
 
[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...Srijan Technologies
 
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 ...Patrick Chanezon
 
Netflix Cloud Architecture and Open Source
Netflix Cloud Architecture and Open SourceNetflix Cloud Architecture and Open Source
Netflix Cloud Architecture and Open Sourceaspyker
 
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...Michael Elder
 
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...InfluxData
 

Similar to [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...
 

Recently uploaded

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 

[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