Ravi Sir's Cards › Chapter 44: Terraform AWS Guides EC2 RDS S3 Security Groups IAM ALB and Auto Scaling
Why use a data source for the AMI instead of a fixed AMI ID?
Why use a data source for the AMI instead of a fixed AMI ID? An AMI (Amazon Machine Image) is the starting disk for an EC2 server. AMI IDs are different in each AWS Region and change when AWS releases updates. A data source asks AWS for the latest matching image at plan time.

Lesson: 44.1 How to launch an EC2 instance with Terraform · मराठी card