AWS res: Add unzip install component for Ubuntu 24.04 RES AMI recipes
Summary
Adds a new custom EC2 Image Builder component (unzip-ubuntu) that runs 'apt-get update && apt-get install -y unzip' for Ubuntu 24.04 based recipes, inserted before the AWS CLI component, and renumbers the subsequent recipe-building steps in both the new-recipe and existing-recipe procedures. Also removes a stray 'key : value' line.
Security assessment
The change is a build/packaging prerequisite fix so the AWS CLI component can be installed on Ubuntu 24.04 images; it adds a package install step and step renumbering, with no authentication, encryption, credential, or vulnerability content.
Evidence
+ - "apt-get update && apt-get install -y unzip"
Diff
diff --git a/res/archive/release-minus-1/ug/res-ready-ami.md b/res/archive/release-minus-1/ug/res-ready-ami.md index 07d3e5da9..b87671f80 100644 --- a//res/archive/release-minus-1/ug/res-ready-ami.md +++ b//res/archive/release-minus-1/ug/res-ready-ami.md @@ -65,2 +64,0 @@ Follow the directions to [Create a component using the Image Builder console](ht - key : value - @@ -247 +245,18 @@ For information on how to install an SSM agent, see: - 7. For Linux based recipes, add the Amazon-managed `aws-cli-version-2-linux` build component to the recipe. For Windows based recipes, add the Amazon-managed `aws-cli-version-2-windows` build component to the recipe. RES installation scripts use the AWS CLI to provide VDI access to configuration values for the DynamoDB cluster-settings. + 7. For Ubuntu 24.04 based recipes, add a custom component to install `unzip` before adding the AWS CLI component. Create a component with the following content: + + name: unzip-ubuntu + description: An RES EC2 Image Builder component to install unzip + schemaVersion: 1.0 + + phases: + - name: build + steps: + - name: InstallPackage + action: ExecuteBash + onFailure: Abort + maxAttempts: 3 + inputs: + commands: + - "apt-get update && apt-get install -y unzip" + + 8. For Linux based recipes, add the Amazon-managed `aws-cli-version-2-linux` build component to the recipe. For Windows based recipes, add the Amazon-managed `aws-cli-version-2-windows` build component to the recipe. RES installation scripts use the AWS CLI to provide VDI access to configuration values for the DynamoDB cluster-settings. @@ -249 +264 @@ For information on how to install an SSM agent, see: - 8. Add the EC2 Image Builder component created for your Linux or Windows environment. + 9. Add the EC2 Image Builder component created for your Linux or Windows environment. @@ -257 +272 @@ You must add these components in order with the `aws-cli-version-2-linux` (for L - 9. (Recommended) Add the Amazon-managed `simple-boot-test-<linux-or-windows>` test component to verify that the AMI can be launched. This is a minimum recommendation. You may select other test components that meet your requirements. + 10. (Recommended) Add the Amazon-managed `simple-boot-test-<linux-or-windows>` test component to verify that the AMI can be launched. This is a minimum recommendation. You may select other test components that meet your requirements. @@ -259 +274 @@ You must add these components in order with the `aws-cli-version-2-linux` (for L - 10. Complete any optional sections if needed, add any other desired components, and choose **Create recipe**. + 11. Complete any optional sections if needed, add any other desired components, and choose **Create recipe**. @@ -269 +284,18 @@ If you have an existing EC2 Image Builder recipe, you can use it by adding the f - 1. For Linux based recipes, add the Amazon-managed `aws-cli-version-2-linux` build component to the recipe. For Windows based recipes, add the Amazon-managed `aws-cli-version-2-windows` build component to the recipe. RES installation scripts use the AWS CLI to provide VDI access to configuration values for the DynamoDB cluster-settings. + 1. For Ubuntu 24.04 based recipes, add a custom component to install `unzip` before adding the AWS CLI component. Create a component with the following content: + + name: unzip-ubuntu + description: An RES EC2 Image Builder component to install unzip + schemaVersion: 1.0 + + phases: + - name: build + steps: + - name: InstallPackage + action: ExecuteBash + onFailure: Abort + maxAttempts: 3 + inputs: + commands: + - "apt-get update && apt-get install -y unzip" + + 2. For Linux based recipes, add the Amazon-managed `aws-cli-version-2-linux` build component to the recipe. For Windows based recipes, add the Amazon-managed `aws-cli-version-2-windows` build component to the recipe. RES installation scripts use the AWS CLI to provide VDI access to configuration values for the DynamoDB cluster-settings. @@ -271 +303 @@ If you have an existing EC2 Image Builder recipe, you can use it by adding the f - 2. Add the EC2 Image Builder component created for your Linux or Windows environment. + 3. Add the EC2 Image Builder component created for your Linux or Windows environment. @@ -279 +311 @@ You must add these components in order with the `aws-cli-version-2-linux` (for L - 3. Complete any optional sections if needed, add any other desired components, and choose **Create recipe**. + 4. Complete any optional sections if needed, add any other desired components, and choose **Create recipe**.