What does this block do?
data "aws_ami" "ubuntu" {
most_recent = true
owners = ["099720109477"]
}
- Builds and registers a new AMI
- Saves the AMI ID into the remote state file
- Declares an input variable
- Looks up an existing AMI to reference
A data source only reads existing infrastructure; nothing is created, and its attributes can be used by resources.
Play DevOps ▸