My Profile Photo
name := "Graham Beer"

`Cloud Engineer with his head in the AWS clouds, authored chapters in the PowerShell Conference Book 1 & 2 and currently learning and enjoying Go


PowerShell Conf Book Planet PowerShell Top 50 PowerShell

Create and view EC2 security groups with PowerShell

For those of you who are new or unfamiliar with security groups in Amazon Web Services (AWS), they are a virtual firewall for your Elastic Compute Cloud (EC2) instance to control inbound and outbound traffic. I will be looking at how we can create and view our security groups with PowerShell using the AWSPowerShell.NetCore module.

Before delving into creating security groups with PowerShell, it is worth noting their basics:

  • First, you are creating AWS security groups on the EC2 instance itself and not at the subnet level.
  • By default, a security group includes an outbound rule that allows all outbound traffic.
  • When creating rules, you can specify allowing them, but there is no deny feature.
  • You are creating rules for inbound and outbound traffic as separate rules.

To continue reading please follow the below link.

4sysops article continues hereā€¦