File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ resource "aws_vpc_security_group_ingress_rule" "nbe_allow_30k_in" {
33
33
}
34
34
35
35
resource "aws_instance" "nbe_instance" {
36
- ami = data. aws_ssm_parameter . al2023_ami_x86-64 . value
36
+ ami = data. aws_ssm_parameter . ubuntu_2404_ami_amd64 . value
37
37
instance_type = " m7i.2xlarge"
38
38
subnet_id = module. vpc . public_subnets [0 ]
39
39
vpc_security_group_ids = [aws_security_group . nbe_lab . id ]
Original file line number Diff line number Diff line change @@ -27,3 +27,7 @@ data "aws_ssm_parameter" "al2023_ami_arm64" {
27
27
data "aws_ssm_parameter" "al2023_ami_x86-64" {
28
28
name = " /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64"
29
29
}
30
+
31
+ data "aws_ssm_parameter" "ubuntu_2404_ami_amd64" {
32
+ name = " /aws/service/canonical/ubuntu/server/24.04/stable/current/amd64/hvm/ebs-gp3/ami-id"
33
+ }
You can’t perform that action at this time.
0 commit comments