in ec2-provider/ec2_provider/todo_app_stack.py [0:0]
def _get_image(self):
"""Lookup the latest Amazon Linux AMI, which is owned by Amazon."""
ami_name = 'amzn2-ami-hvm-2.0.20210126.0-x86_64-gp2'
return ec2.MachineImage.lookup(
name=ami_name,
owners=['137112412989'],
filters={
'virtualization-type': ['hvm'],
'architecture': ['x86_64']
}
)