Student Reviews
( 5 Of 5 )
1 review
Video of Data Sources Terraform Tutorial #10 in Terraform course by Will Brock channel, video No. 11 free certified online
Data Sources allow you to fetch data from existing resources from your infrastructure. You can think of Data Sources like making an API call to your cloud provider and returning the data. There are many ways this can be helpful but one of which might be if you have an existing VPC defined in AWS that you want to use for all your development infrastructure.
In this video I'll go over using data sources to retrieve data in a few different ways.
- Fetch data from an existing resources
- Fetch data that matches tag values
- Fetch most recent ami image that was created
- Output data that we fetched
Course Examples:
https://github.com/WillBrock/terraform-course-examples
Data Sources:
https://www.terraform.io/docs/configuration/data-sources.html
AWS EC2 describe images:
- https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-images.html
AWS AMI data:
- https://www.terraform.io/docs/providers/aws/d/ami.html