Harden an Existing Security Group
A 2-step recipe with Amazon EC2. We can help you get access.
Recipe · 2 steps
Harden an Existing Security Group
with Amazon EC2 · Cybersecurity Management
Resolve a security group and authorize one scoped inbound rule.
- Confirm the target security group exists before adding a rule.
- Authorize the requested scoped inbound rule on the security group.
What you'll need to have ready
- groupId: The ID of the security group to harden.
- ipProtocol: The IP protocol name (tcp, udp, icmp) or number.
- fromPort: The start of the port range.
- toPort: The end of the port range.
- cidrIp: The IPv4 CIDR range allowed by the new rule.
For your developer
Arazzo workflow amazon-ec2:harden-existing-security-group, 2 operations: DescribeSecurityGroups → AuthorizeSecurityGroupIngress. Specs on APIs.io.