Consider the following Terraform 0.

Consider the following Terraform 0.12 configuration snippet:
1. variable “vpc_cidrs” {
2. type = map
3. default = {
4. us-east-1 = “10.0.0.0/16”
5. us-east-2 = “10.1.0.0/16”
6. us-west-1 = “10.2.0.0/16”
7. us-west-2 = “10.3.0.0/16”
8. }
9. }
10.
11. resource “aws_vpc” “shared” {
12. cidr_block = _____________
13. }
How would you define the cidr_block for us-east-1 in the aws_vpc resource using a variable?
A. var.vpc_cidrs.0
B. vpc_cidrs[“us-east-1”]
C. var.vpc_cidrs[“us-east-1”]
D. var.vpc_cidrs[0]

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.