Skip to content

Commit

Permalink
~aws-ts-stackreference: fix getAmi call (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Stokes committed Oct 2, 2019
1 parent 71e2017 commit 30285b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aws-ts-stackreference/team/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ const combinedTags = {
"Managed By": "Pulumi",
};

const amiId = aws.getAmi({
const ami = aws.getAmi({
owners: ["099720109477"], // Ubuntu
mostRecent: true,
filters: [
{ name: "owner-id", values: ["099720109477"] }, // Ubuntu
{ name: "name", values: ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"] },
],
}).id;
});

const instance = new aws.ec2.Instance("tagged", {
ami: amiId,
ami: ami.id,
instanceType: "t2.medium",
tags: combinedTags,
});
Expand Down

0 comments on commit 30285b6

Please sign in to comment.