Difference between revisions of "Terraform data source: data"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
* [[Terraform AWS data sources]]
 
* [[Terraform AWS data sources]]
 
* [[Data sources: template file]]
 
* [[Data sources: template file]]
 +
 +
<code>data</code> block
 +
<pre>
 +
data "aws_ami" "example" {
 +
  most_recent = true
 +
 +
  owners = ["self"]
 +
  tags = {
 +
    Name  = "app-server"
 +
    Tested = "true"
 +
  }
 +
}
 +
</pre>
  
 
== Related terms ==
 
== Related terms ==

Revision as of 10:28, 14 September 2021


data block

data "aws_ami" "example" {
  most_recent = true

  owners = ["self"]
  tags = {
    Name   = "app-server"
    Tested = "true"
  }
}

Related terms

See also

Advertising: