DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

How to attach or change a security group on an EC2 instance

2 years ago towardsthecloud.com
How to attach or change a security group on an EC2 instance

Summary: This is a summary of an article originally published by Towards the Cloud. Read the full original article here →

This how-to guide will explain in detailed steps how you can attach or change security groups (sg) on an Amazon EC2 instance via the AWS Console or the AWS CLI.

How to attach a security group on an Amazon EC2 instance in the AWS Console

Visit the https://eu-central-1.console.aws.amazon.com/ec2/home?region=eu-central-1#Home: in the AWS Console and look for the EC2 instance you wish to attach a new security group.

To attach another security group to the EC2 instance, you need to click on the dropdown menu to select an available security group and then click Add security group.

Now in order to attach another security group to the instance, you run the following aws ec2 command in your terminal.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com