Skip to content

(2024.08) Preparing Infrastructure AMI Failure

Mohjeet edited this page Oct 3, 2024 · 1 revision

Bug description

When preparing AMIs using EC2 Image Builder per the directions listed in the Prerequisites Documentation, the building process will fail with the following error message:

CmdExecution: [ERROR] Command execution has resulted in an error

This is due to errors in the dependencies file that is provided in the documentation.

Affected versions

2024.08

Mitigation

Creating new EC2 Image Builder resources:

Follow these steps if you have never prepared AMIs for RES instances.

  1. Download the updated res-infra-dependencies.tar.gz file
  2. Follow the steps listed under Prepare Amazon Machine Images (AMIs) in the Prerequisites page.

Reusing previous EC2 Image Builder resources:

Follow these steps if you have prepared AMIs for RES instances.

  1. Download the updated res-infra-dependencies.tar.gz file
  2. Navigate to EC2 Image Builder → Components → Click on the Component created for preparing RES AMIs
  3. Note the S3 location listed under Content → DownloadRESInstallScripts step → inputs → source
  4. The S3 location found above contains the dependencies file that was previously used, replace this file with the file downloaded above