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/terrafor...
Data Sources:
https://www.terraform.io/docs/configu...
AWS EC2 describe images:
https://docs.aws.amazon.com/cli/lates...
AWS AMI data:
https://www.terraform.io/docs/provide...
Смотрите видео Data Sources | Terraform Tutorial | #10 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Will Brock 24 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 52,401 раз и оно понравилось 813 людям.