salmon-account-74572
05/08/2019, 8:13 PMgetAmi
function. (I freely admit this could be due to my lack of experience with JavaScript.) Here's the code in question:
const bionicAmi = aws.getAmi({
filter: [
{ name: "name", values: "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server*" },
{ name: "virtualization-type", values: "hvm" },
{ name: "root-device-type", values: "ebs" },
],
mostRecent: true,
owners: [ "099720109477" ],
});
Using this set of filters with the AWS CLI works perfectly, but here it returns a completely different AMI. What am I missing?chilly-crayon-57653
salmon-account-74572
05/09/2019, 6:53 PMchilly-crayon-57653