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]]: <code>[[template_file]]</code>
 
* [[Data sources: template file]]: <code>[[template_file]]</code>
 +
*<code>data</code> block
  
<code>data</code> block
+
==Example==
 
<pre>
 
<pre>
 
data "aws_ami" "example" {
 
data "aws_ami" "example" {

Revision as of 10:32, 14 September 2021


Example

data "aws_ami" "example" {
  most_recent = true

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

Related terms

See also

Advertising: