Skip to content

Commit 9e66d5a

Browse files
committed
fix: default bastion ami lookup
When using a bastion and relying on looking up the default AMI it was failing as the Ubuntu AMI's published by Canonical had changed their description and they no longer included LTS so the CAPA lookup failed. This change removes using LTS in the lookup. In the future we should probably have a more robust way to look up the AMIs. Signed-off-by: Richard Case <[email protected]>
1 parent 1c79952 commit 9e66d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/services/ec2/ami.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const (
6060
ubuntuOwnerIDUsGov = "513442679011"
6161

6262
// Description regex for fetching Ubuntu AMIs for bastion host.
63-
ubuntuImageDescription = "Canonical??Ubuntu??24.04?LTS??amd64?noble?image*"
63+
ubuntuImageDescription = "Canonical??Ubuntu??24.04??amd64?noble?image*"
6464

6565
// defaultMachineAMILookupBaseOS is the default base operating system to use
6666
// when looking up machine AMIs.

0 commit comments

Comments
 (0)