What value should y...
 
Notifications
Clear all

What value should you enter for the ami argument in the AWS instance resource?

1 Posts
1 Users
0 Likes
106 Views
(@leneaveorval)
Posts: 705
Noble Member
Topic starter
 

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

Show Answer Hide Answer

Suggested Answer: C

Explanation:

resource "aws_instance" "web" {

ami= data.aws_ami.ubuntu.id

Reference:

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
 
Posted : 09/02/2023 6:15 pm

Latest TA-002-P V1 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: