Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws-java-webserver/src/main/java/webserver/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void stack(Context ctx) {
final var ami = Ec2Functions.getAmi(GetAmiArgs.builder()
.filters(GetAmiFilterArgs.builder()
.name("name")
.values("amzn2-ami-hvm-2.0.20231218.0-x86_64-ebs")
.values("al2023-ami-*-x86_64")
.build())
.owners("137112412989")
.mostRecent(true)
Expand Down
6 changes: 3 additions & 3 deletions aws-js-webserver-component/webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
const pulumi = require("@pulumi/pulumi");
const aws = require("@pulumi/aws");

// Get the id for the latest Amazon Linux AMI
// Get the id for the latest Amazon Linux 2023 AMI
let ami = aws.ec2.getAmi({
filters: [
{ name: "name", values: ["amzn2-ami-hvm-*"] },
{ name: "name", values: ["al2023-ami-*-x86_64"] },
],
owners: ["amazon"],
owners: ["137112412989"],
mostRecent: true,
}, { async: true }).then(result => result.id);

Expand Down
6 changes: 3 additions & 3 deletions aws-js-webserver/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ const aws = require("@pulumi/aws");

let size = "t2.micro"; // t2.micro is available in the AWS free tier

// Get the id for the latest Amazon Linux AMI
// Get the id for the latest Amazon Linux 2023 AMI
let ami = aws.ec2.getAmi({
filters: [
{ name: "name", values: ["amzn2-ami-hvm-*"] },
{ name: "name", values: ["al2023-ami-*-x86_64"] },
],
owners: ["amazon"],
owners: ["137112412989"],
mostRecent: true,
}, { async: true }).then(result => result.id);

Expand Down
4 changes: 2 additions & 2 deletions aws-py-webserver/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

ami = aws.ec2.get_ami(
most_recent=True,
owners=["amazon"],
filters=[{"name": "name", "values": ["amzn2-ami-hvm-*"]}],
owners=["137112412989"],
filters=[{"name": "name", "values": ["al2023-ami-*-x86_64"]}],
)

group = aws.ec2.SecurityGroup(
Expand Down