0

How to check EC2 security group ID using PowerShell command?

I am new to PowerShell. I tried to browse but couldn't find the answer.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • What information you are looking for a security group id and what have you browsed? Powershell ref. for AWS is here: https://docs.aws.amazon.com/powershell/latest/reference/Index.html – sudo Apr 16 '18 at 21:38
  • Welcome to StackOverflow! For tips on asking a good question, please see: [How do I ask a good question?](http://stackoverflow.com/help/how-to-ask) – John Rotenstein Apr 16 '18 at 22:31

1 Answers1

0

below command will get EC2 security group ID and Group Name

Get-EC2SecurityGroup|select groupname, groupid
Ketanbhut
  • 476
  • 2
  • 11