From the course: Developing Infrastructure as Code with Terraform

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Terraform data sources and resources

Terraform data sources and resources

- Now let's learn about resources and data sources. So this is where we start to really manage our resources in the cloud. So up to this point we've kind of learned about how Terraform works, a little bit about its inner workings, but this is what we actually want Terraform to do. So, just sort of two categories here, resources and data sources. There's a subtle difference between these. So, resource is just simply something that you want Terraform to manage in your cloud environment. So examples are VM instances, networking, objects like VPC storage buckets, things like that. Data sources are things that you want to refer to in your Terraform code but that are not managed by Terraform. So some good examples of that are regions and availability zones, you know, AWS accounts, things like that, so, for example, if you're creating your networking infrastructure and, you know, you need to specify which availability zones those are in, you don't manage and create availability zones, and so…

Contents