File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
aws-java-webserver/src/main/java/webserver
aws-js-webserver-component Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static void stack(Context ctx) {
25
25
final var ami = Ec2Functions .getAmi (GetAmiArgs .builder ()
26
26
.filters (GetAmiFilterArgs .builder ()
27
27
.name ("name" )
28
- .values ("amzn2 -ami-hvm-2.0.20231218.0- x86_64-ebs " )
28
+ .values ("al2023 -ami-*- x86_64" )
29
29
.build ())
30
30
.owners ("137112412989" )
31
31
.mostRecent (true )
Original file line number Diff line number Diff line change 3
3
const pulumi = require ( "@pulumi/pulumi" ) ;
4
4
const aws = require ( "@pulumi/aws" ) ;
5
5
6
- // Get the id for the latest Amazon Linux AMI
6
+ // Get the id for the latest Amazon Linux 2023 AMI
7
7
let ami = aws . ec2 . getAmi ( {
8
8
filters : [
9
- { name : "name" , values : [ "amzn2 -ami-hvm-* " ] } ,
9
+ { name : "name" , values : [ "al2023 -ami-*-x86_64 " ] } ,
10
10
] ,
11
- owners : [ "amazon " ] ,
11
+ owners : [ "137112412989 " ] ,
12
12
mostRecent : true ,
13
13
} , { async : true } ) . then ( result => result . id ) ;
14
14
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ const aws = require("@pulumi/aws");
5
5
6
6
let size = "t2.micro" ; // t2.micro is available in the AWS free tier
7
7
8
- // Get the id for the latest Amazon Linux AMI
8
+ // Get the id for the latest Amazon Linux 2023 AMI
9
9
let ami = aws . ec2 . getAmi ( {
10
10
filters : [
11
- { name : "name" , values : [ "amzn2 -ami-hvm-* " ] } ,
11
+ { name : "name" , values : [ "al2023 -ami-*-x86_64 " ] } ,
12
12
] ,
13
- owners : [ "amazon " ] ,
13
+ owners : [ "137112412989 " ] ,
14
14
mostRecent : true ,
15
15
} , { async : true } ) . then ( result => result . id ) ;
16
16
Original file line number Diff line number Diff line change 7
7
8
8
ami = aws .ec2 .get_ami (
9
9
most_recent = True ,
10
- owners = ["amazon " ],
11
- filters = [{"name" : "name" , "values" : ["amzn2 -ami-hvm-* " ]}],
10
+ owners = ["137112412989 " ],
11
+ filters = [{"name" : "name" , "values" : ["al2023 -ami-*-x86_64 " ]}],
12
12
)
13
13
14
14
group = aws .ec2 .SecurityGroup (
You can’t perform that action at this time.
0 commit comments