You are currently viewing Terraform Resources

Terraform Resources

Terraform Resources

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed terraform providers.

In this blog post, we will discuss terraform resources.

What is Terraform resource?

The resource is one of the core elements of a terraform script. A resource represents infrastructure components like network, server, database, etc. Whatever we need to create\update\delete in the infrastructure through terraform needs to be defined in the resource block. Each resource has its own sets of parameter depending upon the provider specified.

Resource Syntax:

Resource demo:

Hope you have enjoyed this article. In the next blog post, we will discuss terraform variables.

To get more details on terraform, please refer below terraform documentation