When doing a deployment with Elastic Beanstalk, we got the following error:
ERROR: Configuration validation exception: Invalid option value: 'sg-fdd33e89' (Namespace: 'aws:autoscaling:launchconfiguration', OptionName: 'SecurityGroups'): The security group having id 'sg-fdd33e89' does not exist.
Things probably related:
(Already solved this but sharing the question in case it helps somebody else)
I found the Derya Sezen's related blog post AWS Elastic Beanstalk the security group having id does not exist problem that
I run the following with AWS CLI following the blog post:
aws elasticbeanstalk update-environment --environment-name my-env-name --option-settings Namespace=aws:autoscaling:launchconfiguration,OptionName=SecurityGroups,Value=""
After that, EB updated the environments for a while and after that I was able to deploy successfully.
You can delete the problematic part by running eb config
. You will receive editable config for your environment where you can find the non-existent security group and easily delete it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With