Home » HashiCorp » Terraform Associate » What value should you enter for the ami argument in the AWS instance resource?
Examine the following Terraform configuration, which uses the data source for an AWS AMI.
What value should you enter for the ami argument in the AWS instance resource?
A. aws_ami.ubuntu
B. data.aws_ami.ubuntu
C. data. aws_ami. ubuntu, id
D. aws_ami.ubuntu.id
Correct Answer: C
Explanation/Reference:
Explanation: resource “aws_instance” “web” { ami = data.aws_ami.ubuntu.id
Reference: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
Download Printable PDF. VALID exam to help you PASS.
|
|