- Newest
- Most votes
- Most comments
I had the same issue and worked for me after trying for days was to:
- DisableIMDSv1
- Setting RootVolumeType to: gp3 I hope that helps
answered 2 years ago
The errors you're encountering are related to recent changes in AWS Elastic Beanstalk regarding the use of launch configurations. AWS is phasing out launch configurations and replacing them with launch templates. As part of this transition, creating new launch configurations is no longer possible in accounts and regions where Elastic Beanstalk environments don't exist already.
To create your Elastic Beanstalk environment, you need to configure your environment to use launch templates instead of launch configurations. Here's what you can do:
- When creating your Elastic Beanstalk environment, set at least one of the following options in your environment configuration:
- DisableIMDSv1
- RootVolumeType
- BlockDeviceMappings
- EnableSpot
-
You can set these options through the Elastic Beanstalk console, AWS CLI, or API calls when creating your environment.
-
For example, if you're using the AWS CLI, you could add an option setting like this:
--option-settings Namespace=aws:autoscaling:launchconfiguration,OptionName=RootVolumeType,Value=gp2
- If you're using the Elastic Beanstalk console, you can find these options under the "Capacity" configuration section when creating or updating your environment.
By setting one of these options, you're signaling to Elastic Beanstalk to use launch templates instead of launch configurations, which will resolve the errors you're seeing.
HI ! I had the same issue and posted a detailed answer about the underlying cause for this issue and how to work around it (spoiler: above poster has it right), you can read it here:
answered 2 years ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 4 months ago

how did you disable this? I tried setting up a .config file in .ebextensions folder like so
option_settings: aws:autoscaling:launchconfiguration: DisableIMDSv1: true aws:ec2:instances: RootVolumeType: gp3
but still doesnt work
It work for me thanks, you save my time!