Security Group Step-by-Step Guide: Security group creation, Association, Removing the Existing SG from instance

               A security group in AWS is a virtual firewall that controls the traffic allowed to and from the resources in a virtual priva...

            A security group in AWS is a virtual firewall that controls the traffic allowed to and from the resources in a virtual private cloud (VPC)              It acts as a filter for inbound and outbound traffic and determines what traffic is allowed to reach the resources associated with it.                Security groups are stateful, which means that if a request is sent from an instance, the response traffic for that request is allowed to reach the instance regardless of the inbound security group rules. Responses to allowed inbound traffic are allowed to leave the instance, regardless of the outbound rules.               Security groups do not filter traffic destined to and from Amazon Domain Name Services (DNS), Amazon Dynamic Host Configuration Protocol (DHCP), and Amazon EC2 instance metadata.                Security groups can be created, viewed, updated, and deleted using the Amazon EC2 console and the command line tools. They can also be created using the AWS CLI. When a stack is launched, it is associated with one or more security groups, which determine what traffic is allowed to reach it.                     It's important to note that security is a shared responsibility between AWS and the user, and security groups are one of the tools for securing instances. It's recommended to configure them to meet the specific security needs.
HOW TO CREATE SECURITY GROUP: Here are the steps to create a security group in AWS: Open the Amazon VPC console or aws EC2 Dashboard navigate Network and Security click Security groups.


Click the Create security group option to configure the SG. In the SG configuration, enter the name of the SG and the description of the security group. Note that the name and description cannot be changed after the security group is created. From VPC, choose the VPC for which to create the security group. Add security group rules to allow inbound and outbound traffic. For example, you can allow traffic from specific IP addresses or ports. Click Create Security Group to create the SG.



Now we can attach this security group to the existing instance For that choose the instance and click Actions, choose Security, and click Change Security Groups.

In the Security group association step we need to search for already created SG
For example, we need to add an already created SG (techiev-sg), so we need to search and add the SG by clicking Add Security group.

If you want to delete existing the SG, you can remove it simply by clicking the Remove option and saving it.
Now You have added the New security group and cleared the existing security group. For verification click the instance and check the security.
Now you have successfully created the New Security group, attached to the existing Ec2-instance, and removed the existing security group as well.
----------------------------------------!!!! Happy Learning with Techiev !!!!!!!!----------------------------------

-------------------------Subscribe our Youtube Channel by clicking the below link---------------------- ----------------------------!!https://www.youtube.com/@techieview729!!---------------------

Name

AWS,14,Devops,24,linux,10,
ltr
item
Techie View: Security Group Step-by-Step Guide: Security group creation, Association, Removing the Existing SG from instance
Security Group Step-by-Step Guide: Security group creation, Association, Removing the Existing SG from instance
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYCPJ26uklX9EyZxCgvtexNAeci3K8uuiDcV5ijRphfbrZC3izCMrip9gNwrMbk41UnaBpolwWKLWhyhzdsO7dbq0Bo6qKzjHz5VF-e5WaQ4jc4ddZ_WJQ2usFpZtE1VzHSriBH_o8kInvb5RMe0wIC30uy6u06WTEo3nEfVtQ0DVFWFYJZh-mZVYwqDH4/w640-h352/AWS_Security_Group.webp
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYCPJ26uklX9EyZxCgvtexNAeci3K8uuiDcV5ijRphfbrZC3izCMrip9gNwrMbk41UnaBpolwWKLWhyhzdsO7dbq0Bo6qKzjHz5VF-e5WaQ4jc4ddZ_WJQ2usFpZtE1VzHSriBH_o8kInvb5RMe0wIC30uy6u06WTEo3nEfVtQ0DVFWFYJZh-mZVYwqDH4/s72-w640-c-h352/AWS_Security_Group.webp
Techie View
https://www.techiev.com/2023/08/security-group-step-by-step-guide.html
https://www.techiev.com/
https://www.techiev.com/
https://www.techiev.com/2023/08/security-group-step-by-step-guide.html
true
7013663511659419322
UTF-8
Loaded All Posts Not found any posts VIEW ALL View Full Article Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy