تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح Data Sources Terraform Tutorial #10 ضمن كورس Terraform شرح قناة Will Brock، الفديو رقم 11 مجانى معتمد اونلاين
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