Choose the correct answer which fixes the syntax of the following Terraform code:

Posted by: Pdfprep Category: VA-002-P Tags: , ,

Choose the correct answer which fixes the syntax of the following Terraform code:
A . resource "aws_security_group" "vault_elb" {
name = "${var.name_prefix}-vault-elb"
description = var_Vault ELB
vpc_id = var.vpc_id
}
B . resource "aws_security_group" "vault_elb" {
name = "${var.name_prefix}-vault-elb"
description = Vault ELB
vpc_id = var.vpc_id
}
C . resource "aws_security_group" "vault_elb" {
name = "${var.name_prefix}-vault-elb"
description = "${Vault ELB}"
vpc_id = var.vpc_id
}
D . resource "aws_security_group" "vault_elb" {
name = "${var.name_prefix}-vault-elb"
description = [Vault ELB]
vpc_id = var.vpc_id
}
E . resource "aws_security_group" "vault_elb" {
name = "${var.name_prefix}-vault-elb"
description = "Vault ELB"
vpc_id = var.vpc_id
}

Answer: E

Explanation:

When assigning a value to an argument, it must be enclosed in quotes ("…") unless it is being generated programmatically.

Leave a Reply

Your email address will not be published.