QuestionQ86

Terraform configuration

The Terraform configuration displayed in the Exhibit space on this page will create a new AWS instance.

data "aws_instance" "web" \{  
  filter \{  
    name = "tag:Name"  
    values = ["web"]  
  \}  
\}  
  • A True
  • B False
Explanation

A Terraform data "aws_instance" "web" block reads information about an existing AWS instance that matches the specified tag filter; it does not create or modify infrastructure. Creating an instance requires a resource "aws_instance" block.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!