Score:1

Remove the default Security Group assigned by Elastic Beanstalk

us flag

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.

cn flag
Can you not just go to VPC -> Security Groups and delete it? Or do you mean within config/code?
Rami avatar
us flag
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.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.