Terraform is an Infrastructure as Code (IAC) tool that can provision resources in the cloud. Learn how to setup terraform and connect it to cloud providers like AWS, Google Cloud, Azure, or Docker to automate your infrastructure https://github.com/hashicorp/terraform

This video is NOT sponsored

#cloud #code #100SecondsOfCode

🔗 Resources

Terraform Install https://learn.hashicorp.com/tutorials/terraform/install-cli
Terraform Google Cloud https://registry.terraform.io/providers/hashicorp/google/latest

 🤓 Install the quiz app

iOS https://itunes.apple.com/us/app/fireship/id1462592372?mt=8
Android https://play.google.com/store/apps/details?id=io.fireship.quizapp

🔥 Watch more with Fireship PRO

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment. 

🎨 My Editor Settings

- Atom One Dark 
- vscode-icons
- Fira Code Font
2024-02-04T05:48:01.110Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
948cf767-84f3-4939-8b66-5ab659a7ecc8
635cbcc1047c85ca546b6e34a96fcb4160976937f790efd3ca171fc097340a2e
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
Terraform, an infrastructure as code tool that can provision resources in the cloud from simple declarative code.
When building an app in the cloud, you may find yourself using the graphical user interface of your favorite cloud provider, clicking on buttons and paying for products just like you would on an ecommerce site.
The only drawback of this approach is that it's complete and total chaos.
You might click a 1,000 different buttons to get your VM configured properly, but what happens when you need to reproduce the same thing again in the future.
Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing your infrastructure, and all of its settings with the HashiCorp configuration language or optionally JSON.
Think of it like a human readable blueprint that can execute and automate everything you do in the cloud.
It's free and open source, and the first step to get started is to install the CLI on your local system.
Then from your project, create a file ending in dottf.
At the top, we have a Terraform block that controls global settings for Terraform form itself.
Most importantly, we can define providers here, which are like plugins that can connect to different cloud providers like AWS, Google Cloud, Azure, etcetera.
Below that, we have a provider block, which gives Terraform the necessary credentials to connect to our Google Cloud account.
From there, we can create actual cloud infrastructure using a resource block.
It takes a type as its first argument, which corresponds to a product on Google Cloud, then a custom name to identify it as the can argument.
Inside the block, we can customize the settings of the resource like its machine type, zone, and anything else you can imagine.
Now that our infrastructure is defined as code, we can run terraform init to initialize the project, then terraform apply to make the actual changes to Google Cloud.
It'll require a confirmation before making the changes.
Then after it's complete, the Terraform show command can be used to inspect the current state of the infrastructure.
What's Awesome is that as we add more resources to the configuration, Terraform keeps track of the changes or diff similar to a version control a system like Git.
Just run Terraform apply again to deploy any changes to the configuration.
Now once your startup has failed and it comes time to tear down the project, use The Terraform destroy command has the inverse of apply to delete everything in your configuration file.
This has been infrastructure as code with Terraform in 100 seconds.
Make sure to hit the like button if you wanna see more short videos like this.
Thanks for watching, and I will see you in the next one.

Speaker 0: Terraform, an infrastructure as code tool that can provision resources in the cloud from simple declarative code. When building an app in the cloud, you may find yourself using the graphical user interface of your favorite cloud provider, clicking on buttons and paying for products just like you would on an ecommerce site. The only drawback of this approach is that it's complete and total chaos. You might click a 1,000 different buttons to get your VM configured properly, but what happens when you need to reproduce the same thing again in the future. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing your infrastructure, and all of its settings with the HashiCorp configuration language or optionally JSON.

Think of it like a human readable blueprint that can execute and automate everything you do in the cloud. It's free and open source, and the first step to get started is to install the CLI on your local system. Then from your project, create a file ending in dottf. At the top, we have a Terraform block that controls global settings for Terraform form itself. Most importantly, we can define providers here, which are like plugins that can connect to different cloud providers like AWS, Google Cloud, Azure, etcetera.

Below that, we have a provider block, which gives Terraform the necessary credentials to connect to our Google Cloud account. From there, we can create actual cloud infrastructure using a resource block. It takes a type as its first argument, which corresponds to a product on Google Cloud, then a custom name to identify it as the can argument. Inside the block, we can customize the settings of the resource like its machine type, zone, and anything else you can imagine. Now that our infrastructure is defined as code, we can run terraform init to initialize the project, then terraform apply to make the actual changes to Google Cloud.

It'll require a confirmation before making the changes. Then after it's complete, the Terraform show command can be used to inspect the current state of the infrastructure. What's Awesome is that as we add more resources to the configuration, Terraform keeps track of the changes or diff similar to a version control a system like Git. Just run Terraform apply again to deploy any changes to the configuration. Now once your startup has failed and it comes time to tear down the project, use The Terraform destroy command has the inverse of apply to delete everything in your configuration file.

This has been infrastructure as code with Terraform in 100 seconds. Make sure to hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
Terraform, an infrastructure as code tool that can provision resources in the cloud from simple declarative code. When building an app in the cloud, you may find yourself using the graphical user interface of your favorite cloud provider, clicking on buttons and paying for products just like you would on an ecommerce site. The only drawback of this approach is that it's complete and total chaos. You might click a 1,000 different buttons to get your VM configured properly, but what happens when you need to reproduce the same thing again in the future. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing your infrastructure, and all of its settings with the HashiCorp configuration language or optionally JSON.
Think of it like a human readable blueprint that can execute and automate everything you do in the cloud. It's free and open source, and the first step to get started is to install the CLI on your local system. Then from your project, create a file ending in dottf.
software
software development
At the top, we have a Terraform block that controls global settings for Terraform form itself. Most importantly, we can define providers here, which are like plugins that can connect to different cloud providers like AWS, Google Cloud, Azure, etcetera. Below that, we have a provider block, which gives Terraform the necessary credentials to connect to our Google Cloud account.
From there, we can create actual cloud infrastructure using a resource block. It takes a type as its first argument, which corresponds to a product on Google Cloud, then a custom name to identify it as the can argument. Inside the block, we can customize the settings of the resource like its machine type, zone, and anything else you can imagine. Now that our infrastructure is defined as code, we can run terraform init to initialize the project, then terraform apply to make the actual changes to Google Cloud.
infrastructure
It'll require a confirmation before making the changes. Then after it's complete, the Terraform show command can be used to inspect the current state of the infrastructure. What's Awesome is that as we add more resources to the configuration, Terraform keeps track of the changes or diff similar to a version control a system like Git. Just run Terraform apply again to deploy any changes to the configuration. Now once your startup has failed and it comes time to tear down the project, use The Terraform destroy command has the inverse of apply to delete everything in your configuration file. This has been infrastructure as code with Terraform in 100 seconds. Make sure to hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
Terraform, an infrastructure as code tool that can provision resources in the cloud from simple declarative code. When building an app in the cloud, you may find yourself using the graphical user interface of your favorite cloud provider, clicking on buttons and paying for products just like you would on an ecommerce site. The only drawback of this approach is that it's complete and total chaos. You might click a 1,000 different buttons to get your VM configured properly, but what happens when you need to reproduce the same thing again in the future. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing your infrastructure, and all of its settings with the HashiCorp configuration language or optionally JSON. Think of it like a human readable blueprint that can execute and automate everything you do in the cloud. It's free and open source, and the first step to get started is to install the CLI on your local system. Then from your project, create a file ending in dottf. At the top, we have a Terraform block that controls global settings for Terraform form itself. Most importantly, we can define providers here, which are like plugins that can connect to different cloud providers like AWS, Google Cloud, Azure, etcetera. Below that, we have a provider block, which gives Terraform the necessary credentials to connect to our Google Cloud account. From there, we can create actual cloud infrastructure using a resource block. It takes a type as its first argument, which corresponds to a product on Google Cloud, then a custom name to identify it as the can argument. Inside the block, we can customize the settings of the resource like its machine type, zone, and anything else you can imagine. Now that our infrastructure is defined as code, we can run terraform init to initialize the project, then terraform apply to make the actual changes to Google Cloud. It'll require a confirmation before making the changes. Then after it's complete, the Terraform show command can be used to inspect the current state of the infrastructure. What's Awesome is that as we add more resources to the configuration, Terraform keeps track of the changes or diff similar to a version control a system like Git. Just run Terraform apply again to deploy any changes to the configuration. Now once your startup has failed and it comes time to tear down the project, use The Terraform destroy command has the inverse of apply to delete everything in your configuration file. This has been infrastructure as code with Terraform in 100 seconds. Make sure to hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
Terraform,
terraform
an
an
infrastructure
infrastructure
as
as
code
code
tool
tool
that
that
can
can
provision
provision
resources
resources
in
in
the
the
cloud
cloud
from
from
simple
simple
declarative
declarative
code.
code
When
when
building
building
an
an
app
app
in
in
the
the
cloud,
cloud
you
you
may
may
find
find
yourself
yourself
using
using
the
the
graphical
graphical
user
user
interface
interface
of
of
your
your
favorite
favorite
cloud
cloud
provider,
provider
clicking
clicking
on
on
buttons
buttons
and
and
paying
paying
for
for
products
products
just
just
like
like
you
you
would
would
on
on
an
an
ecommerce
ecommerce
site.
site
The
the
only
only
drawback
drawback
of
of
this
this
approach
approach
is
is
that
that
it's
it's
complete
complete
and
and
total
total
chaos.
chaos
You
you
might
might
click
click
a
a
1,000
1,000
different
different
buttons
buttons
to
to
get
get
your
your
VM
vm
configured
configured
properly,
properly
but
but
what
what
happens
happens
when
when
you
you
need
need
to
to
reproduce
reproduce
the
the
same
same
thing
thing
again
again
in
in
the
the
future.
future
Terraform
terraform
provides
provides
a
a
way
way
to
to
build,
build
change,
change
and
and
version
version
infrastructure
infrastructure
safely
safely
and
and
efficiently
efficiently
by
by
representing
representing
your
your
infrastructure,
infrastructure
and
and
all
all
of
of
its
its
settings
settings
with
with
the
the
HashiCorp
hashicorp
configuration
configuration
language
language
or
or
optionally
optionally
JSON.
json
Think
think
of
of
it
it
like
like
a
a
human
human
readable
readable
blueprint
blueprint
that
that
can
can
execute
execute
and
and
automate
automate
everything
everything
you
you
do
do
in
in
the
the
cloud.
cloud
It's
it's
free
free
and
and
open
open
source,
source
and
and
the
the
first
first
step
step
to
to
get
get
started
started
is
is
to
to
install
install
the
the
CLI
cli
on
on
your
your
local
local
system.
system
Then
then
from
from
your
your
project,
project
create
create
a
a
file
file
ending
ending
in
in
dottf.
dottf
At
at
the
the
top,
top
we
we
have
have
a
a
Terraform
terraform
block
block
that
that
controls
controls
global
global
settings
settings
for
for
Terraform
terraform
form
form
itself.
itself
Most
most
importantly,
importantly
we
we
can
can
define
define
providers
providers
here,
here
which
which
are
are
like
like
plugins
plugins
that
that
can
can
connect
connect
to
to
different
different
cloud
cloud
providers
providers
like
like
AWS,
aws
Google
google
Cloud,
cloud
Azure,
azure
etcetera.
etcetera
Below
below
that,
that
we
we
have
have
a
a
provider
provider
block,
block
which
which
gives
gives
Terraform
terraform
the
the
necessary
necessary
credentials
credentials
to
to
connect
connect
to
to
our
our
Google
google
Cloud
cloud
account.
account
From
from
there,
there
we
we
can
can
create
create
actual
actual
cloud
cloud
infrastructure
infrastructure
using
using
a
a
resource
resource
block.
block
It
it
takes
takes
a
a
type
type
as
as
its
its
first
first
argument,
argument
which
which
corresponds
corresponds
to
to
a
a
product
product
on
on
Google
google
Cloud,
cloud
then
then
a
a
custom
custom
name
name
to
to
identify
identify
it
it
as
as
the
the
can
can
argument.
argument
Inside
inside
the
the
block,
block
we
we
can
can
customize
customize
the
the
settings
settings
of
of
the
the
resource
resource
like
like
its
its
machine
machine
type,
type
zone,
zone
and
and
anything
anything
else
else
you
you
can
can
imagine.
imagine
Now
now
that
that
our
our
infrastructure
infrastructure
is
is
defined
defined
as
as
code,
code
we
we
can
can
run
run
terraform
terraform
init
init
to
to
initialize
initialize
the
the
project,
project
then
then
terraform
terraform
apply
apply
to
to
make
make
the
the
actual
actual
changes
changes
to
to
Google
google
Cloud.
cloud
It'll
it'll
require
require
a
a
confirmation
confirmation
before
before
making
making
the
the
changes.
changes
Then
then
after
after
it's
it's
complete,
complete
the
the
Terraform
terraform
show
show
command
command
can
can
be
be
used
used
to
to
inspect
inspect
the
the
current
current
state
state
of
of
the
the
infrastructure.
infrastructure
What's
what's
Awesome
awesome
is
is
that
that
as
as
we
we
add
add
more
more
resources
resources
to
to
the
the
configuration,
configuration
Terraform
terraform
keeps
keeps
track
track
of
of
the
the
changes
changes
or
or
diff
diff
similar
similar
to
to
a
a
version
version
control
control
a
a
system
system
like
like
Git.
git
Just
just
run
run
Terraform
terraform
apply
apply
again
again
to
to
deploy
deploy
any
any
changes
changes
to
to
the
the
configuration.
configuration
Now
now
once
once
your
your
startup
startup
has
has
failed
failed
and
and
it
it
comes
comes
time
time
to
to
tear
tear
down
down
the
the
project,
project
use
use
The
the
Terraform
terraform
destroy
destroy
command
command
has
has
the
the
inverse
inverse
of
of
apply
apply
to
to
delete
delete
everything
everything
in
in
your
your
configuration
configuration
file.
file
This
this
has
has
been
been
infrastructure
infrastructure
as
as
code
code
with
with
Terraform
terraform
in
in
100
100
seconds.
seconds
Make
make
sure
sure
to
to
hit
hit
the
the
like
like
button
button
if
if
you
you
wanna
wanna
see
see
more
more
short
short
videos
videos
like
like
this.
this
Thanks
thanks
for
for
watching,
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
The speaker explains the benefits of Terraform, an infrastructure as code tool that can provision resources in the cloud from simple qualifying code. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing infrastructure settings with HashiCorp configuration language or ante JSON. It is free and open source, and can be installed on a local system. The deployment process uses the Terraform destroy command, which removes all changes made to the configuration file.
Terraform in 100 Seconds
Terraform, an infrastructure as code tool that can provision resources in the cloud from simple declarative code. When building an app in the cloud, you may find yourself using the graphical user interface of your favorite cloud provider, clicking on buttons and paying for products just like you would on an ecommerce site. The only drawback of this approach is that it's complete and total chaos. You might click a 1,000 different buttons to get your VM configured properly, but what happens when you need to reproduce the same thing again in the future. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing your infrastructure, and all of its settings with the HashiCorp configuration language or optionally JSON. Think of it like a human readable blueprint that can execute and automate everything you do in the cloud. It's free and open source, and the first step to get started is to install the CLI on your local system. Then from your project, create a file ending in dottf. At the top, we have a Terraform block that controls global settings for Terraform form itself. Most importantly, we can define providers here, which are like plugins that can connect to different cloud providers like AWS, Google Cloud, Azure, etcetera. Below that, we have a provider block, which gives Terraform the necessary credentials to connect to our Google Cloud account. From there, we can create actual cloud infrastructure using a resource block. It takes a type as its first argument, which corresponds to a product on Google Cloud, then a custom name to identify it as the can argument. Inside the block, we can customize the settings of the resource like its machine type, zone, and anything else you can imagine. Now that our infrastructure is defined as code, we can run terraform init to initialize the project, then terraform apply to make the actual changes to Google Cloud. It'll require a confirmation before making the changes. Then after it's complete, the Terraform show command can be used to inspect the current state of the infrastructure. What's Awesome is that as we add more resources to the configuration, Terraform keeps track of the changes or diff similar to a version control a system like Git. Just run Terraform apply again to deploy any changes to the configuration. Now once your startup has failed and it comes time to tear down the project, use The Terraform destroy command has the inverse of apply to delete everything in your configuration file. This has been infrastructure as code with Terraform in 100 seconds. Make sure to hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
The speaker explains the benefits of Terraform, an infrastructure as code tool that can provision resources in the cloud from simple qualifying code. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing infrastructure settings with HashiCorp configuration language or ante JSON. It is free and open source, and can be installed on a local system. The deployment process uses the Terraform destroy command, which removes all changes made to the configuration file.

        [INST]
        You are youtuber called Fireship you make engaging high-intensity and entertaining coding tutorials and tech news. 
        you covers a wide range of topics relevant to programmers, aiming to help them learn and improve their skills quickly.
        
        Given the title of the video : Terraform in 100 Seconds 
        and a small summary : The speaker explains the benefits of Terraform, an infrastructure as code tool that can provision resources in the cloud from simple qualifying code. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing infrastructure settings with HashiCorp configuration language or ante JSON. It is free and open source, and can be installed on a local system. The deployment process uses the Terraform destroy command, which removes all changes made to the configuration file.
        [/INST]
        
        Generate the video : Terraform, an infrastructure as code tool that can provision resources in the cloud from simple declarative code. When building an app in the cloud, you may find yourself using the graphical user interface of your favorite cloud provider, clicking on buttons and paying for products just like you would on an ecommerce site. The only drawback of this approach is that it's complete and total chaos. You might click a 1,000 different buttons to get your VM configured properly, but what happens when you need to reproduce the same thing again in the future. Terraform provides a way to build, change, and version infrastructure safely and efficiently by representing your infrastructure, and all of its settings with the HashiCorp configuration language or optionally JSON. Think of it like a human readable blueprint that can execute and automate everything you do in the cloud. It's free and open source, and the first step to get started is to install the CLI on your local system. Then from your project, create a file ending in dottf. At the top, we have a Terraform block that controls global settings for Terraform form itself. Most importantly, we can define providers here, which are like plugins that can connect to different cloud providers like AWS, Google Cloud, Azure, etcetera. Below that, we have a provider block, which gives Terraform the necessary credentials to connect to our Google Cloud account. From there, we can create actual cloud infrastructure using a resource block. It takes a type as its first argument, which corresponds to a product on Google Cloud, then a custom name to identify it as the can argument. Inside the block, we can customize the settings of the resource like its machine type, zone, and anything else you can imagine. Now that our infrastructure is defined as code, we can run terraform init to initialize the project, then terraform apply to make the actual changes to Google Cloud. It'll require a confirmation before making the changes. Then after it's complete, the Terraform show command can be used to inspect the current state of the infrastructure. What's Awesome is that as we add more resources to the configuration, Terraform keeps track of the changes or diff similar to a version control a system like Git. Just run Terraform apply again to deploy any changes to the configuration. Now once your startup has failed and it comes time to tear down the project, use The Terraform destroy command has the inverse of apply to delete everything in your configuration file. This has been infrastructure as code with Terraform in 100 seconds. Make sure to hit the like button if you wanna see more short videos like this. Thanks for watching, and I will see you in the next one.
        