AWS::EC2::SecurityGroupIngressResource Type definition for AWS::EC2::SecurityGroupIngress
12 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
IpProtocol | string | RequiredCreate-only |
CidrIp | string | Create-only |
CidrIpv6 | string | Create-only |
Description | string | |
FromPort | integer | Create-only |
GroupId | string | Create-only |
GroupName | string | Create-only |
SourcePrefixListId | string | Create-only |
SourceSecurityGroupId | string | Create-only |
SourceSecurityGroupName | string | Create-only |
SourceSecurityGroupOwnerId | string | Create-only |
ToPort | integer | Create-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | The Security Group Rule Id |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::SecurityGroupIngress
Resources:
MyResource:
Type: AWS::EC2::SecurityGroupIngress
Properties:
IpProtocol: "value"
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:DescribeSecurityGroupRulesec2:AuthorizeSecurityGroupIngressec2:UpdateSecurityGroupRuleDescriptionsIngressec2:DescribeSecurityGroupRulesec2:RevokeSecurityGroupIngressec2:DescribeSecurityGroupsec2:DescribeSecurityGroupRulesec2: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.
GroupNameIpProtocolSourceSecurityGroupIdSourcePrefixListIdToPortCidrIpSourceSecurityGroupNameSourceSecurityGroupOwnerIdFromPortGroupIdCidrIpv6