AWS > Ami >

Ensure Ami Has Owners

LOW
Source
Trivy
ID
AVD-AWS-0344

AWS AMI data source should specify owners

AWS AMI data source should specify owners to avoid using unverified AMIs. The owners field helps ensure you’re using AMIs from known and trusted sources.

Impact

Follow the appropriate remediation steps below to resolve the issue.

Specify the owners field in the AWS AMI data source configuration

1
2
3
4
5
6
7
8
data "aws_ami" "example" {
  most_recent = true
  owners      = ["099720109477"] # Canonical
  filter {
    name   = "name"
    values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"]
  }
}