1

I have created a Elastic Beanstalk environment and have created this .config to edit the security groups which worked. Now my EC2s are attached to the new SG and the default one.

option_settings:
  - namespace: aws:autoscaling:launchconfiguration
    option_name: SecurityGroups
    value: "sg-123456"

My question is: How can I remove the default security group attached to it bcz I don't want to use it.

Rami
  • 11
  • 1
  • Can you not just go to VPC -> Security Groups and delete it? Or do you mean within config/code? – shearn89 Feb 16 '22 at 16:18
  • I need to do it within config/code. it's easy to do it in the console but I'm trying to automate the infrastructure. – Rami Feb 16 '22 at 17:08

0 Answers0