Difference between revisions of "Terraform data source: data"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* https://www.terraform.io/docs/language/data-sources/index.html
 
  
 +
TOMERGE: [[Terraform data sources]]
  
* [[Terraform AWS data sources]]
+
* [[Terraform AWS data sources]] (more than 300)<ref>https://www.hashicorp.com/blog/terraform-aws-provider-4-0-refactors-s3-bucket-resource</ref>
 
** <code>[[aws_caller_identity]]</code>
 
** <code>[[aws_caller_identity]]</code>
  
 
* [[Data sources]]: <code>[[Data sources: template file|template_file]]</code>, <code>[[template]]</code>
 
* [[Data sources]]: <code>[[Data sources: template file|template_file]]</code>, <code>[[template]]</code>
* <code>data</code> block
+
* <code>data</code> [[Terraform blocks|block]]
 
 
==Example==
 
 
 
[[data]] "[[aws_ami]]" "myexample" {
 
  most_recent = true
 
 
  owners = ["self"]
 
  tags = {
 
    Name  = "app-server"
 
    Tested = "true"
 
  }
 
}
 
 
 
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc
 
data "[[aws_vpc]]" "selected" {
 
  id = var.[[my_vpc_id]]
 
}
 
  
 
== Related terms ==
 
== Related terms ==
* [[Terraform AWS]]
+
* [[Terraform AWS]]: [[Terraform AWS data sources|data sources]]
 
* [[Terraform: output]]
 
* [[Terraform: output]]
 +
* [[Terraform: plural data source]]
 +
* <code>[[data.]]</code>
 +
* <code>[[var.]]</code>
 +
* [[Terraform: provider]], [[Terraform: resource]]
 +
* <code>[[aws_iam_policy_document]]</code>
 +
* <code>[[for_each]]</code>
  
 
== See also ==
 
== See also ==
 
* {{terraform aws data sources}}
 
* {{terraform aws data sources}}
* {{terraform aws resources}}
+
* {{terraform data sources}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 18:01, 14 May 2023

Advertising: