From c46dc3b59953fabc945ec5c0891aee933b00bc8e Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 10 Jun 2024 18:03:14 -0500 Subject: [PATCH] manifest: Add awscli2 to RHEL 9 AMI (CLOUDX-913) The awscli2 package is included in the upcoming RHEL 9.5.0 release and it would be helpful to include it in AWS AMIs by default. Signed-off-by: Major Hayden --- pkg/distro/rhel/rhel9/ami.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/distro/rhel/rhel9/ami.go b/pkg/distro/rhel/rhel9/ami.go index 34af5986e9..5776f06b5e 100644 --- a/pkg/distro/rhel/rhel9/ami.go +++ b/pkg/distro/rhel/rhel9/ami.go @@ -240,6 +240,11 @@ func ec2CommonPackageSet(t *rhel.ImageType) rpmmd.PackageSet { }, }.Append(distroSpecificPackageSet(t)) + // Include awscli2 on RHEL 9.5+ (CLOUDX-913) + if common.VersionGreaterThanOrEqual(t.Arch().Distro().OsVersion(), "9.5") { + ps.Include = append(ps.Include, "awscli2") + } + return ps }