Difference between revisions of "Terraform data source: data"
Jump to navigation
Jump to search
↑ https://www.hashicorp.com/blog/terraform-aws-provider-4-0-refactors-s3-bucket-resource
Line 2: | Line 2: | ||
− | * [[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> | ||
Revision as of 01:12, 15 February 2022
- Terraform AWS data sources (more than 300)[1]
- Data sources:
template_file
,template
data
block
Example
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami
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
See also
- AWS Data sources:
aws_region
,aws_vpc
,aws_caller_identity
,aws_availability_zones
,aws_eip
,aws_flow_log
,template_file, aws_ami
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: