This message was deleted.
# general
s
This message was deleted.
b
Hi @high-jackal-29091 Can you change your code slightly and export the AMI Id? i.e
export const imageID = imageId;
And tell me if that works?
You may need to change your code to look like the following:
Copy code
const amiId = aws.getAmi({
    owners: ["0123456"],
    mostRecent: true,
}, { async: true }).then(ami => ami.id);
h
Hey Paul, my code is inside
export class ABC
constructor so I could not export const from there. I added imageID: imageId to
this.registerOutputs
but it did not work.
{ async: true }).then(ami => ami.id);
works like a charm.
Thanks lad, cheers!