Practice – devcor_350-901_Ansible_Terraform

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

Logged in as Guest

AT 50: 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

each.value.id
var.list
module[*]
var.vpc
module.vpc.id
module.vpc[*].id
var.vpcs