Student Reviews
( 5 Of 5 )
1 review
Video of Resource Exports & Dependencies Terraform Tutorial #5 in Terraform course by Will Brock channel, video No. 6 free certified online
Each resource in Terraform exports data and information about the resource. This data can then be used as input into other resources. When data from one resource is used for another then it becomes a dependency. Thankfully Terraform automatically figures out any dependencies allowing users not to have to worry about it much.
In this video we'll create a few resources using the values of one resource as the input into other resources. Below are a few things that we'll cover.
- Create an AWS VPC, Subnet and Instance
- Use the exported attributes from one resource into another creating a dependency
Code Examples:
https://github.com/WillBrock/terraform-course-examples
AWS VPC:
https://www.terraform.io/docs/providers/aws/r/vpc.html
AWS Subnet:
- https://www.terraform.io/docs/providers/aws/r/subnet.html
AWS Instance:
https://www.terraform.io/docs/providers/aws/r/instance.html