Olá, boa tarde!
Para quem tiver passando pelo problema:
│ Error: Error waiting for Elastic Beanstalk Environment (e-pgbprmjkzs) to become ready: 3 errors occurred:
│ * 2024-10-20 20:29:58.23 +0000 UTC (e-pgbprmjkzs) : Stack named 'awseb-e-pgbprmjkzs-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBAutoScalingLaunchConfiguration].
│ * 2024-10-20 20:29:58.437 +0000 UTC (e-pgbprmjkzs) : Creating Auto Scaling launch configuration failed Reason: Resource handler returned message: "The Launch Configuration creation operation is not available in your account. Use launch templates to create configuration templates for your Auto Scaling groups. (Service: AutoScaling, Status Code: 400, Request ID: *********)" (RequestToken: ***********, HandlerErrorCode: GeneralServiceException)
│ * 2024-10-20 20:30:00.192 +0000 UTC (e-pgbprmjkzs) : Service:AmazonCloudFormation, Message:Resource AWSEBAutoScalingGroup does not exist for stack awseb-e-pgbprmjkzs-stack
Adicionar os seguintes settings no recurso de "aws_elastic_beanstalk_environment" solucionou:
setting {
namespace = "aws:autoscaling:launchconfiguration"
name = "RootVolumeType"
value = "gp3"
}
setting {
namespace = "aws:autoscaling:launchconfiguration"
name = "DisableIMDSv1"
value = "true"
}
link do forum onde eu achei a solução: https://repost.aws/questions/QUcX9TipxqSGeM5G7RORmqoQ/new-account-recently-created-unable-to-create-environments-on-elastic-beanstalk-launch-configuration-error