简体   繁体   English

如何使用Powershell命令检查EC2安全组ID?

[英]How to check EC2 security group id using Powershell command?

How to check EC2 security group ID using PowerShell command? 如何使用PowerShell命令检查EC2安全组ID?

I am new to PowerShell. 我是PowerShell的新手。 I tried to browse but couldn't find the answer. 我试图浏览,但找不到答案。

下面的命令将获取EC2安全组ID和组名称

Get-EC2SecurityGroup|select groupname, groupid

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS ec2 run-instances 命令在 PowerShell 中创建具有多个安全组的实例 - AWS ec2 run-instances command to create the instance with multiple security groups in PowerShell 如何使用PowerShell获取cloudformation堆栈的EC2实例IpAddress? - How to get EC2 Instances IpAddress of a cloudformation stack using PowerShell? 仅使用Powershell列出EC2的名称 - Only list name of EC2 using Powershell 如何使用 EC2 实例本身的 PowerShell 知道附加到 EC2 的“IAM 角色”的名称? - How can I know the Name of the “IAM role” attached to EC2 using PowerShell from EC2 Instance itself? 无法从 powershell 获取存在的 ec2 实例的图像 ID - Not able to get Image ID of existence ec2 instance from powershell 显示服务器名称的AWS EC2 Powershell命令/脚本 - AWS EC2 Powershell Command / Script To Show Server Names 如何检查 Windows 更新是否在 EC2 上完成? - How to check if the Windows updates are finished on EC2? 如何使用 PowerShell v4 将成员从一个安全组复制到 AD 中的另一个安全组? - How to copy members from one security group to another security group in AD using PowerShell v4? 使用 Powershell 和 Terraform 挑战为 AWS EC2 创建 EC2 用户数据 - Create EC2 Userdata for AWS EC2 using Powershell with Terraform challenge 使用AWS Powershell工具启动/停止AWS EC2实例 - Starting/Stopping AWS EC2 Instances using AWS Powershell Tools
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM