---
title: "Discussion on \"Day 5: Resource Dependencies & Data Sources\" | Hashnode"
description: "Discussion on \"Day 5: Resource Dependencies & Data Sources\". Welcome to Day 5! Today we’ll explore how Terraform manages relationships between resources and how to query existing infrastructure using data sources. Understanding dependencies is crucial for building complex, reliable infrastructure.\n🎯 Today’s G..."
url: "https://hashnode.com/posts/day-5-resource-dependencies-and-data-sources/68e8f82e2c563c7003dca3a8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Day 5: Resource Dependencies & Data Sources](https://stackopsdiary.site/day-5-resource-dependencies-and-data-sources?utm_source=hashnode&utm_medium=feed)

Welcome to Day 5! Today we’ll explore how Terraform manages relationships between resources and how to query existing infrastructure using data sources. Understanding dependencies is crucial for building complex, reliable infrastructure. 🎯 Today’s G...

Oct 10, 2025 · 9 min read · stackopsdiary.site  
Updated Oct 22, 2025  
Read the article

-   [#terraform](https://hashnode.com/tag/terraform)
-   [#aws](https://hashnode.com/tag/aws)
-   [#devops](https://hashnode.com/tag/devops)
-   [#iac](https://hashnode.com/tag/iac)

## Written by

[StackOps - Diary](https://hashnode.com/@stackops97)

@stackops97 · Yangon, Myanmar

  
[View profile](https://hashnode.com/@stackops97)

Linux, DevOps, Kubernetes, AWS

I'm a cloud-native enthusiast and tech blogger, sharing insights on Kubernetes, AWS, CI/CD, and Linux across my blog and Facebook page. Passionate about modern infrastructure and microservices, I aim to help others understand and leverage cloud-native technologies for scalable, efficient solutions.

## Responses 1

Markdown supported · ⌘↵ to post

[Thu Kha Kyawe](https://hashnode.com/@thukhakyawe)

[Oct 18, 2025](https://hashnode.com/posts/day-5-resource-dependencies-and-data-sources/68e8f82e2c563c7003dca3a8/comment/68f3b57d80b9cf84fb30cc32)

Thank you!

but I found out there is error in outputs.tf. Wrong

value = "[http://$](http://$/){aws\_instance.web.public\_ip}"

It must be

output "website\_url" { description = "Website URL" value = "[${aws\_instance.web.public\_ip}](http://${aws_instance.web.public_ip}/)" }

[StackOps - Diary](https://hashnode.com/@stackops97)

[Oct 21, 2025](https://hashnode.com/posts/day-5-resource-dependencies-and-data-sources/68e8f82e2c563c7003dca3a8/comment/68f3b57d80b9cf84fb30cc32#reply-68f7b78d19e9543642851c1d)

Thanks for noting that! Yes, the correct full block in outputs.tf should be. I appreciate the feedback!.
