Complete the code to use a Terraform Registry module named "vpc".
module "my_vpc" { source = [1] }
The source attribute specifies the module location. For Terraform Registry modules, it uses the format "namespace/module/provider".
Complete the code to specify the version of the Terraform Registry module.
module "my_vpc" { source = "terraform-aws-modules/vpc/aws" version = [1] }
The version attribute must be a string specifying the exact module version, like "3.14.0".
Fix the error in the module block to correctly pass the VPC CIDR block.
module "my_vpc" { source = "terraform-aws-modules/vpc/aws" version = "3.14.0" [1] = "10.0.0.0/16" }
The correct variable name to pass is cidr, matching the module's expected input.
Fill both blanks to define a module with source and enable DNS support.
module "my_vpc" { source = [1] enable_dns_hostnames = [2] }
The source must be the module path string, and enable_dns_hostnames is a boolean true or false, not a string.
Fill all three blanks to define a module with source, version, and enable public subnets.
module "my_vpc" { source = [1] version = [2] public_subnets = [3] }
The source is the module path string, version is a string with the version number, and public_subnets is a list of subnet CIDR blocks.