AWS::EC2::SecurityGroupEgressAdds the specified outbound (egress) rule to a security group. An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 address range, the IP addresses that are specified by a prefix list, or the instances that are associated with a destination security group. For more information, see [Security group rules](https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html). You must specify exactly one of the following destinations: an IPv4 address range, a...
9 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
GroupId | string | RequiredCreate-only |
IpProtocol | string | RequiredCreate-only |
CidrIp | string | Create-only |
CidrIpv6 | string | Create-only |
Description | string | |
DestinationPrefixListId | string | Create-only |
DestinationSecurityGroupId | string | Create-only |
FromPort | integer | Create-only |
ToPort | integer | Create-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::SecurityGroupEgress
Resources:
MyResource:
Type: AWS::EC2::SecurityGroupEgress
Properties:
IpProtocol: "value"
GroupId: "my-groupid"
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:DescribeSecurityGroupRulesec2:AuthorizeSecurityGroupEgressec2:RevokeSecurityGroupEgressec2:DescribeSecurityGroupRulesec2:UpdateSecurityGroupRuleDescriptionsEgressec2:DescribeSecurityGroupRulesec2:RevokeSecurityGroupEgressec2:DescribeSecurityGroupRulesEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
IpProtocolDestinationSecurityGroupIdToPortCidrIpFromPortGroupIdCidrIpv6DestinationPrefixListId