Reader small image

You're reading from  Architecting AWS with Terraform

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781803248561
Edition1st Edition
Right arrow
Author (1)
Erol Kavas
Erol Kavas
author image
Erol Kavas

Erol Kavas has worked in the IT industry for more than 20 years, with 10 years dedicated to infrastructure, the cloud, and DevOps. He has helped many Canadian and US enterprises and governments to build their cloud foundations and embark upon their containerization and Kubernetes journeys. He is fully certified on AWS, Azure, Google Cloud Platform, and Kubernetes in all disciplines. He is a partner and chief consultant in a DevOps and cloud consulting firm that helps Canadian and US start-ups in their cloud and DevOps journeys. He is also a Microsoft Certified Trainer (MCT) regional lead for Canada and trains many new cloud professionals at CloudCamp.
Read more about Erol Kavas

Right arrow

Selecting AWS public modules for your needs

To use a public module in Terraform, you need to specify the source of the module in a module block in your configuration. You can specify the source of a module using a local path, Terraform Public Registry, a Git repository URL, or a URL to a compressed archive file (e.g. a .zip or .tar.gz file).

Here are some examples of how you can specify the source of a public module in a module block:

Local path: To use a module from a local directory, specify the path to the directory as the source attribute, for example:

module "web_server_cluster" {
  source = "./web_server_cluster"
}

This specifies that the web_server_cluster module is located in a local directory named web_server_cluster.

Git repository: To use a module from a Git repository, specify the URL of the repository as the source attribute, for example:

module "web_server_cluster" {
  source = "git::https://github...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Architecting AWS with Terraform
Published in: Dec 2023Publisher: PacktISBN-13: 9781803248561

Author (1)

author image
Erol Kavas

Erol Kavas has worked in the IT industry for more than 20 years, with 10 years dedicated to infrastructure, the cloud, and DevOps. He has helped many Canadian and US enterprises and governments to build their cloud foundations and embark upon their containerization and Kubernetes journeys. He is fully certified on AWS, Azure, Google Cloud Platform, and Kubernetes in all disciplines. He is a partner and chief consultant in a DevOps and cloud consulting firm that helps Canadian and US start-ups in their cloud and DevOps journeys. He is also a Microsoft Certified Trainer (MCT) regional lead for Canada and trains many new cloud professionals at CloudCamp.
Read more about Erol Kavas