How do I resolve the "Configuration validation exception" error in Elastic Beanstalk?

1 minutos de lectura
0

When I update my AWS Elastic Beanstalk environment, I encounter the following error: "Configuration validation exception: Unable to look up root device name for image ami-1234abcd". I want to resolve this error so that I can make changes to my environment.

Resolution

The Configuration validation exception error occurs for the following reasons:

  • The configuration for an Amazon Machine Image (AMI) in the Elastic Beanstalk environment is incorrect.
  • A custom AMI that's referenced in the environment is deleted from the account.

To resolve this error, complete the following steps:

  1. Create a new custom AMI.
  2. Install AWS Command Line Interface (AWS CLI) on your local machine.
  3. To update the Elastic Beanstalk environment with the new AMI ID, run the update-environment command:
    aws elasticbeanstalk update-environment --environment-name env_name --option-settings Namespace=aws:autoscaling:launchconfiguration,OptionName=ImageId,Value=ami_id --region region_id
    Note: Replace env_name with your environment name, ami_id with your AMI ID, and region_id with your AWS Region.

Note: If you receive errors when you run AWS CLI commands, then see Troubleshoot AWS CLI errors. Also, make sure that you're using the most recent AWS CLI version.

OFICIAL DE AWS
OFICIAL DE AWSActualizada hace 4 meses