Practice – devcor_350-901_Ansible_Terraform

Strength:
0%
Answered: 0 • Correct: 0 • Incorrect: 0

Logged in as Guest

AT 47: Terraform - use for_each with a module to build multiple VPCs and output their IDs.

Drag the correct code snippets from the options panel into the placeholders in the code window.

module "vpc" { source = "./modules/vpc" for_each = {{1}} name = each.key cidr = each.value } output "vpc_ids" { value = {{2}} }

Drag a snippet from the right into each blank box in the code.

Available snippets

var.vpcs
module[*]
toset(var.vpcs)
module.vpc[*].id
count
module.vpc.id
each.value.id