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]] | * [[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
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: