This template creates two VPC security groups with egress and ingress rules. The `SourceSG` security group allows outbound traffic to the `TargetSG` security group. The `TargetSG` security group allows inbound traffic from the `SourceSG` security group. The outbound rule allows TCP traffic from port 0 to port 65535, and the inbound rule allows TCP traffic from port 0 to port 65535.

SourceSG
AWS::EC2::SecurityGroup


TargetSG
AWS::EC2::SecurityGroup


OutboundRule
AWS::EC2::SecurityGroupEgress


InboundRule
AWS::EC2::SecurityGroupIngress


CloudFormation Template

Share Template