SlideShare a Scribd company logo
Presenter : Sushil
DevOps Tech Geek
Intro
Sushil
• Over 7+ years of Experience
HashiCorp ToolChain
Terraform
Packer
Vault
What is Terraform ?
Terraform Overview
What is Terraform?
Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently.
It can be used across multiple providers such as Azure, AWS, Google Cloud, among many others.
So, how is this done?
Just define
components/resources in
configuration file
Tell it which
provider to use
Generate an
execution plan
prior to
deployment
And then
execute the
build
It’s done ….
Key features
Key features
of terraform are:
•Infrastructure as Code
•code-defined infrastructure is easier to read, maintain and share with
others.
•Execution Plans
•The execution plan shows exactly what will happen when you apply a
particular Terraform configuration.
•Helps avoids failed deployments.
•Resource Graph
• After infrastructure has been built by Terraform, visualize your resources
and gain insight into their dependencies.
•Change Automation
• helps avoid human error while changes are orchestrated.
Terraform vs. Other Software
Sounds good? Aren’t there other tool sets that do the same?
 Sure, but the power comes by being able to use across multiple providers.
 From a deployment perspective I could use
 Resource Manager in Azure,
 Cloud Formation in AWS, or
 Cloud Deployment Manager in GCE
but they are all specific to their respective cloud. Terraform can be used across all three.
 But let’s me add a note - terraform is not a configuration management tool such as Chef and Puppet. You should continue to use those
tools for their intended purpose by using provisioners once the resource has been created.
See In Real Time
Lab:
Deployment across Multiple Providers
Lets deploy together some simple resources across Microsoft’s Azure, Amazon’s AWS and Google’s Compute Engine using terraform.
Terraform Use Cases & Summary
Terraform’s flexibility and power means it will work across a very wide range of use cases.
Muti-cloud deployment:
Deploy application across multiple platforms for fault tolerance or disaster recovery.
While many infrastructure orchestration tools are cloud vendor specific, Terraform is cloud-agnostic.
Software demos:
Provide a sample Terraform configuration file to create, provision and bootstrap a demo on cloud providers like AWS to your end
users and clients, who could also quickly tweak resource parameters according to their needs.
Disposable environments:
SDLC process will create environments like QA, Staging, Load Testing, and Production. Some of these environments don’t always
have to be running.
Your Terraform-based infrastructure is code-based, you can easily build and destroy your infrastructure according to need
What is Packer ?
 Packer is an open source tool for creating identical machine images for multiple platforms.
 Packer is lightweight, runs on every major operating system.
 Machine image formats include AMIs for EC2, VMDK/VMX files for VMware, OVF exports for VirtualBox, etc.
 Packer only builds images. It does not attempt to manage them in any way.
Packer Overview
What is Packer?
Super fast
infrastructure
deployment
Multi-provider
portability
Improved
stability
Greater
testability.
Why Packer?
 Pre-baked machine images have a lot of advantages, but images have been too tedious to
create and manage.
 Packer made it is easy and automates the creation of any type of machine image.
Advantages of Using Packer
● Amazon EC2 (AMI)
● CloudStack
● OpenStack
● DigitalOcean
● Docker
● Google Compute Engine
● Parallels
● VirtualBox (OVF)
● VMware (VMX)
Supports Platform
You can add support to any platform by extending Packer using plugins.
Templates - Packer by HashiCorp
 Templates are JSON files that configure the various components of Packer in order to create one or more machine
images.
Immutable Infrastructure with Packer
Demo: Packer custom AMI build
Templates - Packer by HashiCorp
* Workshop: Build a custom AWS-AMI using Packer from your workstation
{
"builders":[
{
"type":"amazon-ebs",
"region": "eu-west-1",
"access_key": “xxxxxxxxxxxxxxxxxx",
"secret_key": “xxxxxxxxxxxxxxxxxxxxxx",
"source_ami": "ami-f90a4880",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "Packer_Demo-{{isotime | clean_ami_name}}",
"ami_description": "AMI designed by Packer",
"tags": {
"role": "AppBaseAMI"
},
"run_tags":{
"role": "buildSystem"
}
}
]
}
Execution step:
run this command “packer build -debug template.json”
Packer : One of its Use Case
- vim playbook.yml
{
"builders":[
{
………………
"ami_description": "AMI designed by Packer",
"tags": {
"role": "AppBaseAMI"
},
"run_tags":{
"role": "buildSystem"
}
}
],
"provisioners":[
{
"type": "shell",
"script": "ansible.sh"
},
{
"type": "ansible-local",
"playbook_file": "./playbook.yml"
}
]
}
- vim template.json
Packer : One of its Use Case
What is Vault ?
Our Goal
Automate
Everything
Everything
needs to be
defined in code
Sounds good until ...
What about the passwords?
Everyone remembers the advice
“do not write passwords”
But we can’t depend on a human
being to configure a password
Need a “secure” mechanism to store and distribute passwords and other
secrets
So where can I put the secrets?
Remember
them
Code
Config
management
tools
Encryption
Vault
Hashicorp Vault
What is Vault?
 Vault is a tool for securely accessing and managing secrets
 Secret is anything that you want to tightly control access to, such as API keys, passwords, or certificates.
Why Hashicorp Vault ?
 Take secret management to the next level
 Automation friendly
 Complete API access
 Automatic rotation for several tools and platforms
 Integrations with Terraform and Consul template
 Secure
Automation friendly - App workflow
Vault provides a secure solution for sharing and distributing secrets
HashiCorp Tools BestFit
Summary
 Very little effort to deploy & manage resources in Azure, AWS, and Google.
Not the only tool but it is powerful and simple
If you are looking to deploy resources across multiple providers, take advantage HashiCorp
Ecosystem:
 Terraform – tool for creating, combining, and modifying infrastructure.
 Packer – tool for creating images.
 Vault - tool for managing secrets.
 Consul – tool for service discovery, service registry, and health checks.
 Vagrant – tool for managing dev environments
Thank YouThank You
Contact @ https://www.linkedin.com/in/sushil-kumar-24690150/

More Related Content

What's hot

No Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with AnsibleNo Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with Ansible
Jeff Potts
 
How Ansible Makes Automation Easy
How Ansible Makes Automation EasyHow Ansible Makes Automation Easy
How Ansible Makes Automation Easy
Peter Sankauskas
 
Ansible
AnsibleAnsible
Ansible
Rahul Bajaj
 
Monitor-Driven Development Using Ansible
Monitor-Driven Development Using AnsibleMonitor-Driven Development Using Ansible
Monitor-Driven Development Using Ansible
Itamar Hassin
 
Puppet Camp Denver 2015: Nagios Management With Puppet
Puppet Camp Denver 2015: Nagios Management With PuppetPuppet Camp Denver 2015: Nagios Management With Puppet
Puppet Camp Denver 2015: Nagios Management With Puppet
Puppet
 
DockerCon SF 2015: Networking Breakout
DockerCon SF 2015: Networking BreakoutDockerCon SF 2015: Networking Breakout
DockerCon SF 2015: Networking Breakout
Docker, Inc.
 
Immutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and TerraformImmutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and Terraform
Michael Peacock
 
Provisioning your Environment with Vagrant and Ansible
Provisioning your Environment with Vagrant and AnsibleProvisioning your Environment with Vagrant and Ansible
Provisioning your Environment with Vagrant and Ansible
Richard Gwozdz
 
Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)
Richard Donkin
 
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Simplilearn
 
DevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & AnsibleDevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & Ansible
Arnaud LEMAIRE
 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Software, Inc.
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMasterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Malcolm Duncanson, CISSP
 
Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. Ansible
Alberto Molina Coballes
 
Spinnaker for Azure
Spinnaker for AzureSpinnaker for Azure
Spinnaker for Azure
Larry Guger
 
Building a smarter application stack - service discovery and wiring for Docker
Building a smarter application stack - service discovery and wiring for DockerBuilding a smarter application stack - service discovery and wiring for Docker
Building a smarter application stack - service discovery and wiring for Docker
Tomas Doran
 
Infrastructure Automation with Chef & Ansible
Infrastructure Automation with Chef & AnsibleInfrastructure Automation with Chef & Ansible
Infrastructure Automation with Chef & Ansible
wajrcs
 
Automating Monitoring with Puppet
Automating Monitoring with PuppetAutomating Monitoring with Puppet
Automating Monitoring with Puppet
Christian Mague
 
Spinnaker - Bay Area AWS Meetup - 20160726
Spinnaker - Bay Area AWS Meetup - 20160726Spinnaker - Bay Area AWS Meetup - 20160726
Spinnaker - Bay Area AWS Meetup - 20160726
Adam Jordens
 
Akka.net versus microsoft orleans
Akka.net versus microsoft orleansAkka.net versus microsoft orleans
Akka.net versus microsoft orleans
Bill Tulloch
 

What's hot (20)

No Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with AnsibleNo Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with Ansible
 
How Ansible Makes Automation Easy
How Ansible Makes Automation EasyHow Ansible Makes Automation Easy
How Ansible Makes Automation Easy
 
Ansible
AnsibleAnsible
Ansible
 
Monitor-Driven Development Using Ansible
Monitor-Driven Development Using AnsibleMonitor-Driven Development Using Ansible
Monitor-Driven Development Using Ansible
 
Puppet Camp Denver 2015: Nagios Management With Puppet
Puppet Camp Denver 2015: Nagios Management With PuppetPuppet Camp Denver 2015: Nagios Management With Puppet
Puppet Camp Denver 2015: Nagios Management With Puppet
 
DockerCon SF 2015: Networking Breakout
DockerCon SF 2015: Networking BreakoutDockerCon SF 2015: Networking Breakout
DockerCon SF 2015: Networking Breakout
 
Immutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and TerraformImmutable Infrastructure with Packer Ansible and Terraform
Immutable Infrastructure with Packer Ansible and Terraform
 
Provisioning your Environment with Vagrant and Ansible
Provisioning your Environment with Vagrant and AnsibleProvisioning your Environment with Vagrant and Ansible
Provisioning your Environment with Vagrant and Ansible
 
Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)Go Faster with Ansible (PHP meetup)
Go Faster with Ansible (PHP meetup)
 
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
 
DevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & AnsibleDevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & Ansible
 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of ChefChef Fundamentals Training Series Module 1: Overview of Chef
Chef Fundamentals Training Series Module 1: Overview of Chef
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMasterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM Roles
 
Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. Ansible
 
Spinnaker for Azure
Spinnaker for AzureSpinnaker for Azure
Spinnaker for Azure
 
Building a smarter application stack - service discovery and wiring for Docker
Building a smarter application stack - service discovery and wiring for DockerBuilding a smarter application stack - service discovery and wiring for Docker
Building a smarter application stack - service discovery and wiring for Docker
 
Infrastructure Automation with Chef & Ansible
Infrastructure Automation with Chef & AnsibleInfrastructure Automation with Chef & Ansible
Infrastructure Automation with Chef & Ansible
 
Automating Monitoring with Puppet
Automating Monitoring with PuppetAutomating Monitoring with Puppet
Automating Monitoring with Puppet
 
Spinnaker - Bay Area AWS Meetup - 20160726
Spinnaker - Bay Area AWS Meetup - 20160726Spinnaker - Bay Area AWS Meetup - 20160726
Spinnaker - Bay Area AWS Meetup - 20160726
 
Akka.net versus microsoft orleans
Akka.net versus microsoft orleansAkka.net versus microsoft orleans
Akka.net versus microsoft orleans
 

Similar to Hashicorp-Terraform_Packer_Vault-by Sushil

Automation with Packer and TerraForm
Automation with Packer and TerraFormAutomation with Packer and TerraForm
Automation with Packer and TerraForm
Wesley Charles Blake
 
BSidesDFW2022-PurpleTeam_Cloud_Identity.pptx
BSidesDFW2022-PurpleTeam_Cloud_Identity.pptxBSidesDFW2022-PurpleTeam_Cloud_Identity.pptx
BSidesDFW2022-PurpleTeam_Cloud_Identity.pptx
JasonOstrom1
 
Hitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as Code
Hitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as CodeHitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as Code
Hitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as Code
Robert van Mölken
 
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricSurat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Jitendra Bafna
 
Madrid meetup #7 deployment models
Madrid meetup #7   deployment modelsMadrid meetup #7   deployment models
Madrid meetup #7 deployment models
Mario Alberto Martinez Lopez
 
Infrastructure as code, using Terraform
Infrastructure as code, using TerraformInfrastructure as code, using Terraform
Infrastructure as code, using Terraform
Harkamal Singh
 
Industrializing the creation of machine images and Docker containers for clou...
Industrializing the creation of machine images and Docker containers for clou...Industrializing the creation of machine images and Docker containers for clou...
Industrializing the creation of machine images and Docker containers for clou...
OW2
 
Effective terraform
Effective terraformEffective terraform
Effective terraform
Calvin French-Owen
 
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDays Riga
 
Packer by HashiCorp
Packer by HashiCorpPacker by HashiCorp
Packer by HashiCorp
Łukasz Cieśluk
 
Packer
Packer Packer
Packer
Nitesh Saini
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
Albert Suwandhi
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platform
nirajrules
 
DevOps for database
DevOps for databaseDevOps for database
DevOps for database
Osama Mustafa
 
CDK Meetup: Rule the World through IaC
CDK Meetup: Rule the World through IaCCDK Meetup: Rule the World through IaC
CDK Meetup: Rule the World through IaC
smalltown
 
Dockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx CasablancaDockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx Casablanca
Michel Courtine
 
TYPO3 CMS v8 in the cloud
TYPO3 CMS v8 in the cloudTYPO3 CMS v8 in the cloud
TYPO3 CMS v8 in the cloud
Johannes Goslar
 
Chef and Apache CloudStack (ChefConf 2014)
Chef and Apache CloudStack (ChefConf 2014)Chef and Apache CloudStack (ChefConf 2014)
Chef and Apache CloudStack (ChefConf 2014)Jeff Moody
 
Large-scaled Deploy Over 100 Servers in 3 Minutes
Large-scaled Deploy Over 100 Servers in 3 MinutesLarge-scaled Deploy Over 100 Servers in 3 Minutes
Large-scaled Deploy Over 100 Servers in 3 Minutes
Hiroshi SHIBATA
 
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
Jitendra Bafna
 

Similar to Hashicorp-Terraform_Packer_Vault-by Sushil (20)

Automation with Packer and TerraForm
Automation with Packer and TerraFormAutomation with Packer and TerraForm
Automation with Packer and TerraForm
 
BSidesDFW2022-PurpleTeam_Cloud_Identity.pptx
BSidesDFW2022-PurpleTeam_Cloud_Identity.pptxBSidesDFW2022-PurpleTeam_Cloud_Identity.pptx
BSidesDFW2022-PurpleTeam_Cloud_Identity.pptx
 
Hitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as Code
Hitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as CodeHitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as Code
Hitchhiker's guide to Cloud-Native Build Pipelines and Infrastructure as Code
 
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime FabricSurat MuleSoft Meetup#2 - Anypoint Runtime Fabric
Surat MuleSoft Meetup#2 - Anypoint Runtime Fabric
 
Madrid meetup #7 deployment models
Madrid meetup #7   deployment modelsMadrid meetup #7   deployment models
Madrid meetup #7 deployment models
 
Infrastructure as code, using Terraform
Infrastructure as code, using TerraformInfrastructure as code, using Terraform
Infrastructure as code, using Terraform
 
Industrializing the creation of machine images and Docker containers for clou...
Industrializing the creation of machine images and Docker containers for clou...Industrializing the creation of machine images and Docker containers for clou...
Industrializing the creation of machine images and Docker containers for clou...
 
Effective terraform
Effective terraformEffective terraform
Effective terraform
 
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
 
Packer by HashiCorp
Packer by HashiCorpPacker by HashiCorp
Packer by HashiCorp
 
Packer
Packer Packer
Packer
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platform
 
DevOps for database
DevOps for databaseDevOps for database
DevOps for database
 
CDK Meetup: Rule the World through IaC
CDK Meetup: Rule the World through IaCCDK Meetup: Rule the World through IaC
CDK Meetup: Rule the World through IaC
 
Dockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx CasablancaDockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx Casablanca
 
TYPO3 CMS v8 in the cloud
TYPO3 CMS v8 in the cloudTYPO3 CMS v8 in the cloud
TYPO3 CMS v8 in the cloud
 
Chef and Apache CloudStack (ChefConf 2014)
Chef and Apache CloudStack (ChefConf 2014)Chef and Apache CloudStack (ChefConf 2014)
Chef and Apache CloudStack (ChefConf 2014)
 
Large-scaled Deploy Over 100 Servers in 3 Minutes
Large-scaled Deploy Over 100 Servers in 3 MinutesLarge-scaled Deploy Over 100 Servers in 3 Minutes
Large-scaled Deploy Over 100 Servers in 3 Minutes
 
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
MuleSoft Surat Meetup#42 - Runtime Fabric Manager on Self Managed Kubernetes ...
 

Recently uploaded

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 

Recently uploaded (20)

Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 

Hashicorp-Terraform_Packer_Vault-by Sushil

  • 2. Intro Sushil • Over 7+ years of Experience
  • 5. Terraform Overview What is Terraform? Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. It can be used across multiple providers such as Azure, AWS, Google Cloud, among many others.
  • 6. So, how is this done? Just define components/resources in configuration file Tell it which provider to use Generate an execution plan prior to deployment And then execute the build It’s done ….
  • 7. Key features Key features of terraform are: •Infrastructure as Code •code-defined infrastructure is easier to read, maintain and share with others. •Execution Plans •The execution plan shows exactly what will happen when you apply a particular Terraform configuration. •Helps avoids failed deployments. •Resource Graph • After infrastructure has been built by Terraform, visualize your resources and gain insight into their dependencies. •Change Automation • helps avoid human error while changes are orchestrated.
  • 8. Terraform vs. Other Software Sounds good? Aren’t there other tool sets that do the same?  Sure, but the power comes by being able to use across multiple providers.  From a deployment perspective I could use  Resource Manager in Azure,  Cloud Formation in AWS, or  Cloud Deployment Manager in GCE but they are all specific to their respective cloud. Terraform can be used across all three.  But let’s me add a note - terraform is not a configuration management tool such as Chef and Puppet. You should continue to use those tools for their intended purpose by using provisioners once the resource has been created.
  • 9. See In Real Time Lab: Deployment across Multiple Providers Lets deploy together some simple resources across Microsoft’s Azure, Amazon’s AWS and Google’s Compute Engine using terraform.
  • 10. Terraform Use Cases & Summary Terraform’s flexibility and power means it will work across a very wide range of use cases. Muti-cloud deployment: Deploy application across multiple platforms for fault tolerance or disaster recovery. While many infrastructure orchestration tools are cloud vendor specific, Terraform is cloud-agnostic. Software demos: Provide a sample Terraform configuration file to create, provision and bootstrap a demo on cloud providers like AWS to your end users and clients, who could also quickly tweak resource parameters according to their needs. Disposable environments: SDLC process will create environments like QA, Staging, Load Testing, and Production. Some of these environments don’t always have to be running. Your Terraform-based infrastructure is code-based, you can easily build and destroy your infrastructure according to need
  • 12.  Packer is an open source tool for creating identical machine images for multiple platforms.  Packer is lightweight, runs on every major operating system.  Machine image formats include AMIs for EC2, VMDK/VMX files for VMware, OVF exports for VirtualBox, etc.  Packer only builds images. It does not attempt to manage them in any way. Packer Overview What is Packer?
  • 13. Super fast infrastructure deployment Multi-provider portability Improved stability Greater testability. Why Packer?  Pre-baked machine images have a lot of advantages, but images have been too tedious to create and manage.  Packer made it is easy and automates the creation of any type of machine image. Advantages of Using Packer
  • 14. ● Amazon EC2 (AMI) ● CloudStack ● OpenStack ● DigitalOcean ● Docker ● Google Compute Engine ● Parallels ● VirtualBox (OVF) ● VMware (VMX) Supports Platform You can add support to any platform by extending Packer using plugins.
  • 15. Templates - Packer by HashiCorp  Templates are JSON files that configure the various components of Packer in order to create one or more machine images. Immutable Infrastructure with Packer
  • 16. Demo: Packer custom AMI build Templates - Packer by HashiCorp * Workshop: Build a custom AWS-AMI using Packer from your workstation { "builders":[ { "type":"amazon-ebs", "region": "eu-west-1", "access_key": “xxxxxxxxxxxxxxxxxx", "secret_key": “xxxxxxxxxxxxxxxxxxxxxx", "source_ami": "ami-f90a4880", "instance_type": "t2.micro", "ssh_username": "ubuntu", "ami_name": "Packer_Demo-{{isotime | clean_ami_name}}", "ami_description": "AMI designed by Packer", "tags": { "role": "AppBaseAMI" }, "run_tags":{ "role": "buildSystem" } } ] } Execution step: run this command “packer build -debug template.json”
  • 17. Packer : One of its Use Case - vim playbook.yml { "builders":[ { ……………… "ami_description": "AMI designed by Packer", "tags": { "role": "AppBaseAMI" }, "run_tags":{ "role": "buildSystem" } } ], "provisioners":[ { "type": "shell", "script": "ansible.sh" }, { "type": "ansible-local", "playbook_file": "./playbook.yml" } ] } - vim template.json
  • 18. Packer : One of its Use Case
  • 20. Our Goal Automate Everything Everything needs to be defined in code Sounds good until ...
  • 21. What about the passwords? Everyone remembers the advice “do not write passwords” But we can’t depend on a human being to configure a password Need a “secure” mechanism to store and distribute passwords and other secrets
  • 22. So where can I put the secrets? Remember them Code Config management tools Encryption Vault
  • 23. Hashicorp Vault What is Vault?  Vault is a tool for securely accessing and managing secrets  Secret is anything that you want to tightly control access to, such as API keys, passwords, or certificates.
  • 24. Why Hashicorp Vault ?  Take secret management to the next level  Automation friendly  Complete API access  Automatic rotation for several tools and platforms  Integrations with Terraform and Consul template  Secure
  • 25. Automation friendly - App workflow Vault provides a secure solution for sharing and distributing secrets
  • 27. Summary  Very little effort to deploy & manage resources in Azure, AWS, and Google. Not the only tool but it is powerful and simple If you are looking to deploy resources across multiple providers, take advantage HashiCorp Ecosystem:  Terraform – tool for creating, combining, and modifying infrastructure.  Packer – tool for creating images.  Vault - tool for managing secrets.  Consul – tool for service discovery, service registry, and health checks.  Vagrant – tool for managing dev environments
  • 28. Thank YouThank You Contact @ https://www.linkedin.com/in/sushil-kumar-24690150/

Editor's Notes

  1. Change Automation Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors.
  2. Advantages of Using Packer Super fast infrastructure deployment: Packer images allow you to launch completely provisioned and configured machines in seconds. This benefits not only production, but development as well Multi-provider portability Packer creates identical images for multiple platforms Improved stability Packer installs and configures all the software for a machine at the time the image is built. If there are bugs in these scripts, they'll be caught early, rather later when a machine is launched. Greater testability. you can be confident that any other machines launched from that image will function properly.