Skip to main content

5. Resources & data sources

Managing resources; reading existing infra with data sources; resource addressing.

⏱ ≈ 20 min this module · 📚 ≈ 5.8 h full track

🔒 Unlock this course to read the material and run the labs.

See options to unlock →
🔒 The written material unlocks with the course.
🧪 Hands-on lab Easy · 130 XP · 20min

Goal

Create an S3 bucket, then read it back with a data source and expose its details as outputs.

Requirements

  • An aws_s3_bucket resource with bucket = certland-labs-ds
  • A data "aws_s3_bucket" that looks that bucket up
  • An output that exposes the bucket name from the data source

Then run terraform init && terraform apply -auto-approve.

🔒 Unlock the course to run this lab.