data "aws_ami" "ubuntu" { ... } fetches the latest Ubuntu AMI ID from AWS at plan time. Data sources read existing infrastructure — not managed, not destroyed by terraform destroy.
🌊 This is a free sample — 507+ more questions on DevOps Ocean
Sign in free to practice the full question bank with daily challenges, XP, streaks, duels and a global leaderboard.