Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Resources and Modules

Sumit Rawal answered on May 14, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Resources and Modules

0

A Terraform configuration consists of a root module, where evaluation begins, along with a tree of child modules created when one module calls another.

The main purpose of the Terraform language is declaring resources. All other language features exist only to make the definition of resources more flexible and convenient.

A group of resources can be gathered into a module, which creates a larger unit of configuration. A resource describes a single infrastructure object, while a module might describe a set of objects and the necessary relationships between them in order to create a higher-level system.

So, in one terraform root folder there could be many modules folder which are called by root module.

— — — — main terraform folder

— — — — — — — — -build

— — — — — — — — — — -main.tf, auth.tf,

— — — — — — — — -test

— — — — — — — — — — main.tf, auth.tf

— — — — — — — — -production

— — — — — — — — — — -main.tf,auth.tf

— — — — — — — — -Modules

— — — — — — — — — — -ebs,sg,vpc

So, you got the idea that main.tf could be inside one folder but can call anywhere, even github address.

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 14 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.