Data Source: aws_ami_ids

Use this data source to get a list of AMI IDs matching the specified criteria.

Example Usage

data "aws_ami_ids" "ubuntu" {
  owners = ["099720109477"]

  filter {
    name   = "name"
    values = ["ubuntu/images/ubuntu-*-*-amd64-server-*"]
  }
}

Argument Reference

Attribute Reference

ids is set to the list of AMI IDs, sorted by creation time according to sort_ascending.

Timeouts

Configuration options: