Difference between revisions of "Terraform data source: data"
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 | ||
− | + | ==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
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: