Skip to content

Commit 27e6f54

Browse files
committed
works on ubuntu too
1 parent 103c41e commit 27e6f54

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

nbe.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "aws_vpc_security_group_ingress_rule" "nbe_allow_30k_in" {
3333
}
3434

3535
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
3737
instance_type = "m7i.2xlarge"
3838
subnet_id = module.vpc.public_subnets[0]
3939
vpc_security_group_ids = [aws_security_group.nbe_lab.id]

providers.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ data "aws_ssm_parameter" "al2023_ami_arm64" {
2727
data "aws_ssm_parameter" "al2023_ami_x86-64" {
2828
name = "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64"
2929
}
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+
}

0 commit comments

Comments
 (0)