0
0
Terraformcloud~10 mins

Module registry for organization in Terraform - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the source of the module from the organization registry.

Terraform
module "network" {
  source = "app.terraform.io/[1]/network/vpc/aws"
  version = "1.0.0"
}
Drag options to blanks, or click blank then click option'
Amy-org
Bterraform
Caws
Dvpc
Attempts:
3 left
💡 Hint
Common Mistakes
Using provider name instead of organization name
Omitting the organization name
Confusing module name with organization
2fill in blank
medium

Complete the code to specify the module version from the registry.

Terraform
module "database" {
  source  = "app.terraform.io/my-org/db/mysql"
  version = "[1]"
}
Drag options to blanks, or click blank then click option'
A1.2.3
Blatest
Cv1
Dstable
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-semantic version strings
Omitting the version attribute
Using provider or module names instead of version
3fill in blank
hard

Fix the error in the module source path to correctly reference the organization registry.

Terraform
module "webserver" {
  source = "app.terraform.io/my-org/[1]/nginx/aws"
  version = "2.0.0"
}
Drag options to blanks, or click blank then click option'
Awebserver
Bmodules
Cnetwork
Dnginx
Attempts:
3 left
💡 Hint
Common Mistakes
Using generic terms like 'modules' instead of the actual module name
Confusing module name with provider or organization
4fill in blank
hard

Fill both blanks to define a module source with organization and provider correctly.

Terraform
module "storage" {
  source = "app.terraform.io/[1]/storage/[2]"
  version = "1.1.0"
}
Drag options to blanks, or click blank then click option'
Amy-org
Baws
Cgcp
Dazure
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping organization and provider positions
Using provider name as organization
Using incorrect provider names
5fill in blank
hard

Fill all three blanks to define a module source with organization, module name, and provider.

Terraform
module "cache" {
  source  = "app.terraform.io/[1]/[2]/[3]"
  version = "3.0.1"
}
Drag options to blanks, or click blank then click option'
Amy-org
Bredis
Caws
Dmysql
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up module name and provider
Using incorrect organization name
Using unrelated module names