Difference between revisions of "Terraform AWS data sources"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
== AWS data sources ==
 
== AWS data sources ==
* <code>[[Data source: aws caller identity|aws_caller_identity]]</code>
+
{{tf aws data sources TOC}}
* <code>[[Data Source: aws_availability_zones|aws_availability_zones]]</code>
 
* <code>[[aws_ami]]</code>
 
* <code>[[aws_iam_policy_document]]</code>
 
* <code>[[Terraform data source: aws_vpc|aws_vpc]]</code>
 
* <code>[[Terraform data source: aws_region|aws_region]]</code>
 
  
 
== Examples ==
 
== Examples ==
Line 23: Line 18:
  
 
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc
 
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc
  data "[[aws_vpc]]" "selected" {
+
  [[data]] "[[aws_vpc]]" "selected" {
 
   id = var.[[my_vpc_id]]
 
   id = var.[[my_vpc_id]]
 
  }
 
  }
Line 30: Line 25:
 
   template = [[aws_iam_access_key]].my_new_user.encrypted_secret
 
   template = [[aws_iam_access_key]].my_new_user.encrypted_secret
 
  }
 
  }
 
  
 
== Related terms ==
 
== Related terms ==
Line 39: Line 33:
 
== See also ==
 
== See also ==
 
* {{terraform aws data sources}}
 
* {{terraform aws data sources}}
* {{terraform aws resources}}
+
* {{data.}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 08:30, 24 October 2024

Advertising: