cool-scientist-53915
11/03/2023, 7:13 PM// Find the latest Amazon Linux 2 AMI.
const ami = pulumi.output(aws.ec2.getAmi({
owners: [ "amazon" ],
mostRecent: true,
filters: [
{ name: "description", values: [ "Amazon Linux 2 *" ] },
],
}));
Would that instance be be destroyed and recreated every time pulumi up
was run after a new AMI with a description matching Amazon Linux 2 *
is released?dry-keyboard-94795
11/03/2023, 7:50 PMcool-scientist-53915
11/03/2023, 7:51 PMdry-keyboard-94795
11/03/2023, 7:52 PMcool-scientist-53915
11/03/2023, 7:53 PMsalmon-account-74572
11/06/2023, 12:47 PMignoreChanges
on the AMI property of the EC2 instance (just an idea, I haven’t tested it).