0% found this document useful (0 votes)
36 views76 pages

Terraform Slides

Uploaded by

d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views76 pages

Terraform Slides

Uploaded by

d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 76

Terraform on AWS

Harjit Nanua
Part 1
Terraform
What is Terraform?
● Terraform is an open-source Infrastructure as Code (IaC) tool by HashiCorp.

● It allows you to define and provision infrastructure using declarative


configuration files.

● Supports multi-cloud platforms like AWS, Azure, GCP, and on-premises


systems.

● Enables infrastructure automation, reducing manual errors and improving


efficiency.
IaC?
● Infrastructure as Code (IaC) is the practice of managing and
provisioning infrastructure using machine-readable
configuration files instead of manual processes. It ensures
consistency, automation, and version control for infrastructure
deployments.
Benefits of Infrastructure as Code (IaC)
● Ensures consistent infrastructure deployment across environments

● Reduces manual configuration errors and enhances automation.

● Facilitates version control for infrastructure changes.

● Enables rapid scaling and disaster recovery.

● Simplifies collaboration between developers and operations teams.


Key Features of Terraform
● Declarative Syntax: Define what you want, not how to do it.

● State Management: Tracks current infrastructure state for updates.

● Dependency Graphing: Automatically manages resource dependencies.

● Execution Plan: Previews changes before applying them.

● Multi-Cloud Support: Operates across various cloud platforms and on-


premises.
Declarative Syntax
● Specify the desired end-state of your infrastructure.

● Terraform handles the steps to achieve the desired configuration.

● Simplifies complex infrastructure definitions.

● Reduces human error by abstracting procedural steps.


State Management
● Maintains a record of deployed resources in a state file.

● Helps Terraform understand the current infrastructure setup.

● Enables incremental updates instead of full redeployment.

● Ensures accurate tracking of resource changes.


Dependency Graphing
● Automatically determines dependencies between resources.

● Ensures resources are created, updated, or destroyed in the correct


order.

● Prevents configuration conflicts and errors.

● Visualize dependencies using tools like terraform graph.


Execution Plan
● Previews changes before applying them.

● Lists resources to be added, modified, or deleted.

● Helps validate changes and avoid unintended impacts.

● Use terraform plan to generate the execution plan.


Part 2
AWS
Execution Plan
Part 3
Terraform Parts
Terraform Core
● The heart of Terraform, responsible for managing the workflow.

● Reads configuration files (.tf) and manages the execution plans.

● Interacts with providers to perform resource operations.

● Stores and updates the state file (.tfstate) for tracking infrastructure
state.
Providers
● Act as plugins to interact with cloud service APIs (e.g., AWS, Azure,
GCP).

● Enable Terraform to manage resources for various platforms.

● Include specific configuration for each platform (e.g., regions,


authentication).
Provisioners
● Execute scripts or commands on resources during creation or
destruction.

● Types:

○ Remote-exec: Runs commands remotely on the resource (e.g.,


SSH into an instance).

○ Local-exec: Executes commands on the local machine.


State File (.tfstate)
● Tracks the current state of infrastructure.

● Ensures incremental updates by comparing the state file with the


configuration.

● Essential for managing infrastructure changes and detecting drift.

● Can be stored locally or remotely (e.g., in S3 for shared


environments).
Terraform Manifest Files (.tf)
● Define the desired infrastructure using HashiCorp Configuration
Language (HCL).

● Modular and reusable for different environments.

● Include resource definitions, variables, and outputs.


Part 4
Installing Terraform
Installing on windows
● Download terraform

● Change the path –Copy the path in downloads, open system


properties, create a new path

● Open CMD and type in terraform version


Installing on MacOs
Installing on MacOs
Terraform Registry
Next step, creating an AWS Account
Your IAM user account and beyond
● New user

● Log into your account

● Install the AWS CLI

● Setup your VS Code, with extention


Part 5
Working with
resources
AWS Resources
● EC2

● EBS

● And so on..
Terraform init
● Initializes the working directory.

● Downloads and installs the required provider plugins.

● Prepares Terraform to work with the configuration files.

● Must be run before any other Terraform commands.


Terraform plan
● Creates an execution plan based on the current state and
configuration files.

● Previews actions Terraform will take (add, modify, or delete resources).

● Highlights changes without actually applying them.


Terraform apply
● Executes the actions in the execution plan to align infrastructure with
the configuration.

● Prompts for confirmation before applying changes unless automated


with a flag.

● Creates, updates, or deletes resources as needed.


Other commands
● terraform state list

● terraform state show <resource>

● terraform state rm <resource>

● terraform state mv <source> <destination>


Other commands
● terraform validate

● terraform fmt

● terraform import

● terraform workspace list

● terraform show
Other commands
● terraform show

● terraform refresh

● terraform output

● terraform providers

● terraform modules -json


Other commands
● Terraform version

● Terraform upgrade
Part 6
Working with
resources
-VPC, ELB
Contents of this template
You can delete this slide when you’re done editing the presentation

To view this template correctly in PowerPoint, download and install the fonts
Fonts
we used
An assortment of graphic resources that are suitable for use in this
Used and alternative resources
presentation

Thanks slide You must keep it so that proper credits for our design are given

Colors All the colors used in this presentation

Icons and infographic resources These can be used in the template, and their size and color can be edited

Editable presentation theme You can edit the master slides easily. For more info, click here

For more info: You can visit our sister projects:


SLIDESGO | BLOG | FREEPIK | FLATICON | STORYSET |
FAQs WEPIK | VIDEVO
Welcome!
You can give a brief description of the topic
you want to talk about here. For example,
if you want to talk about Mercury, you can
say that it’s the smallest planet in the
entire Solar System
Conference speakers

Jenna Doe Timmy jimmy Susan bones


CEO & founder Accountant manager Manager assistant
Venus Company Mars Company Saturn Company

You can speak a bit You can speak a bit You can speak a bit
about this person here about this person here about this person here
Schedule - session talks
Day 1 Day 2 Day 3
January 10, 20XX January 11, 20XX January 12, 20XX

Jenna Doe Business management


CEO & founder techniques
Jupiter is a gas giant and the biggest planet in
9:00 - 11:00 the Solar System. It's the fourth-brightest
Venus Hotel object in the night sky

Timmy
Jimmy How to build your own business
Accountant manager
Mercury is the closest planet to the Sun and the
11:15 - 15:15 smallest in the entire Solar System. Its name
Venus Hotel has nothing to do with the liquid metal
0
1
About the speakers
You can enter a subtitle here
if you need it
Speaker 01
Jenna Doe
CEO & founder

Jupiter is a gas giant and the biggest


planet in the Solar System. It's the
fourth-brightest object in the night sky.
It was named after the Roman god of
the skies and lightning
● Saturn is a gas giant and has
several rings. It's composed
mostly of hydrogen and helium.

● You can replace the image. Just


right-click on it and select
“Replace image”
“This is a quote, words full of wisdom
that someone important said and can
make the reader get inspired.”

—Someone Famous
Our history
Jupiter is a gas giant and the biggest
planet in the Solar System. It’s the fourth-
brightest object in the night sky. It was
named after the Roman god of the skies
and lightning
Saturn is a gas giant and has several rings.
It’s composed mostly of hydrogen and
helium. This planet was named after the
Roman god of wealth and agriculture
Earth is the third planet from the Sun and
the only one that harbors life in the Solar
System. We all live on this planet
Timeline

Venus Venus the second-brightest natural


object in the night sky after the Moon

Saturn Saturn was named after the Roman god


of wealth and agriculture

Jupiter Jupiter is a gas giant and the biggest


planet in the Solar System

Mercury Mercury the closest planet to the Sun


and the smallest one in the Solar
System
Our team of experts

Timmy Jimmy Julian Lyman


Despite being red, Mars is Earth is the third planet
actually a cold place from the Sun and has life

Tracey Bower Lily Reid


Saturn is the second-largest Neptune is the farthest
planet in the Solar System planet from the Sun
Our big idea #1

Mercury Venus Mars


Mercury is the closest Venus is the second Despite being red, Mars
planet to the Sun planet from the Sun is actually a cold place

Jupiter Saturn Neptune


Jupiter doesn’t have a Saturn is composed of Neptune the farthest
solid surface hydrogen and helium planet from the Sun
Our big idea #2
Saturn is composed of
01
hydrogen and helium

Earth is the third planet


02
from the Sun and has life

Jupiter is the biggest


03
planet in the Solar System

Neptune is the farthest


04
planet from the Sun

25
Saturn 75
Jupiter 50
Mars
% Saturn has % Jupiter is a % Mars is made
several rings gas giant of basalt
Chart

Mercury
Mercury is the closest planet
to the Sun and the smallest
one in the Solar System

Venus
Venus has a beautiful name
and is the second planet
from the Sun

Follow the link in the graph to modify its data and then paste the
new one here. For more info, click here
Our pricing

Level 1 Level 2 Level 3

● Mercury is the
● Venus is the second ● Despite being red,
closest planet to the
planet from the Sun Mars is a cold place
Sun
● Venus has extremely ● Mars is full of iron
● Mercury is a very
high temperatures oxide dust
small planet

$50 $100 $125


What’s next?
Earth is a planet that
05 harbors life Now
Jupiter is the biggest
04 planet of them all

Saturn is a gas giant Neptune is the


03 and has several farthest planet
rings from the Sun

Despite being red,


02 Mars is a cold place

Venus is the second


01 planet from the Sun Then
Conference highlights
01 02
Mercury Venus
Mercury is the closest Venus is the second
planet to the Sun planet from the Sun

03 04 05
Jupiter Saturn Neptune
Jupiter doesn’t have a Saturn is composed of Neptune is the farthest
solid surface hydrogen and helium planet from the Sun
Our future conferences

November
MON TUE WED THU FRI SAT SUN Venus
1 2 3 4 5 6 Venus has a beautiful name
and is the second planet
7 8 9 10 11 12 13 from the Sun

14 15 16 17 18 19 20

21 22 23 24 25 26 27
Mercury
Mercury is the closest
28 29 30 planet to the Sun and the
smallest in the Solar
System
Thanks to all our sponsors
Jupiter is a gas giant and the biggest planet in the Solar System. It’s the fourth-
brightest object in the night sky. It was named after the Roman god of the skies
and lightning

LOGO 1 LOGO 2

LOGO 3
Thanks!
Do you have any questions?
[email protected]
+34 654 321 432
yourwebsite.com

CREDITS: This presentation template was created by Slidesgo,


and includes icons by Flaticon, and infographics & images by
Freepik
Please keep this slide for attribution
Alternative resources
Here’s an assortment of alternative resources whose style fits that of this template:
● Gradient abstract background
● Vector gradient grainy gradient background
● Vector gradient grainy gradient background I
Resources
Did you like the resources used in this ● Confident young businessman wit
template? Get them on these websites: h hands in his pocket holding new
spaper looking at camera
Photos ● Smiling portrait of a young busine
● Man having a videocall for work ssman sitting on wheelchair using
● Smiley woman holding clipboard a laptop with his colleague at back
t the workplace ground
● Side view of smiley woman worki ● Portrait of an african young busin
ng with laptop in the office esswoman holding mobile phone i
● Businessman working on laptop n hand looking away
● Side view woman posing on chair
● Empty conference room with copy
space Illustrations
● Portrait beautiful formal woman ● Gradient trendy background
● Portrait woman talking on mobile
Instructions for use
If you have a free account, in order to use this template, you must credit Slidesgo by keeping the Thanks slide. Please
refer to the next slide to read the instructions for premium users.

As a Free user, you are allowed to:


● Modify this template.
● Use it for both personal and commercial projects.

You are not allowed to:


● Sublicense, sell or rent any of Slidesgo Content (or a modified version of Slidesgo Content).
● Distribute Slidesgo Content unless it has been expressly authorized by Slidesgo.
● Include Slidesgo Content in an online or offline database or file.
● Offer Slidesgo templates (or modified versions of Slidesgo templates) for download.
● Acquire the copyright of Slidesgo Content.

For more information about editing slides, please read our FAQs or visit our blog:
https://slidesgo.com/faqs and https://slidesgo.com/slidesgo-school
Instructions for use (premium users)
As a Premium user, you can use this template without attributing Slidesgo or keeping the "Thanks" slide.

You are allowed to:


● Modify this template.
● Use it for both personal and commercial purposes.
● Hide or delete the “Thanks” slide and the mention to Slidesgo in the credits.
● Share this template in an editable format with people who are not part of your team.

You are not allowed to:


● Sublicense, sell or rent this Slidesgo Template (or a modified version of this Slidesgo Template).
● Distribute this Slidesgo Template (or a modified version of this Slidesgo Template) or include it in a database or in
any other product or service that offers downloadable images, icons or presentations that may be subject to
distribution or resale.
● Use any of the elements that are part of this Slidesgo Template in an isolated and separated way from this
Template.
● Register any of the elements that are part of this template as a trademark or logo, or register it as a work in an
intellectual property registry or similar.

For more information about editing slides, please read our FAQs or visit our blog:
https://slidesgo.com/faqs and https://slidesgo.com/slidesgo-school
Fonts & colors used
This presentation has been made using the following fonts:

Playfair Display
(https://fonts.google.com/specimen/Playfair+Display)

Montserrat
(https://fonts.google.com/specimen/Montserrat)

#191919 #f3f3f3

#a3a3b5 #c67812
Storyset
Create your Story with our illustrated concepts. Choose the style you like the most, edit its
colors, pick the background and layers you want to show and bring them to life with the
animator panel! It will boost your presentation. Check out how it works.

Pana Amico Bro Rafiki Cuate


Use our editable graphic resources...
You can easily resize these resources without losing quality. To change the color, just ungroup the resource and click on
the object you want to change. Then, click on the paint bucket and select the color you want. Group the resource again
when you’re done. You can also look for more infographics on Slidesgo.
JANUARY FEBRUARY MARCH APRIL MAY JUNE

PHASE 1

Task 1

Task 2

PHASE 2

Task 1

Task 2

JANUARY FEBRUARY MARCH APRIL

PHASE 1

Task 1

Task 2
...and our sets of editable icons
You can resize these icons without losing quality.
You can change the stroke and fill color; just select the icon and click on the paint bucket/pen.
In Google Slides, you can also use Flaticon’s extension, allowing you to customize and add even more icons.
Educational Icons Medical Icons
Business Icons Teamwork Icons
Help & Support Icons Avatar Icons
Creative Process Icons Performing Arts Icons
Nature Icons
SEO & Marketing Icons

You might also like