Under is an easy CloudFormation script block to create a Safety Group in AWS.
Assets:
SampleAppAppstreamSG:
Kind: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Inbound and outbound visitors for service
GroupName: 'sampleappsg-123'
VpcId: !Ref vpcid
Tags:
- Key: "Identify"
Worth: "Pattern App Safety Group"
SecurityGroupEgress:
- IpProtocol: "-1"
FromPort: 0
ToPort: 0
CidrIp: 10.0.0.0/8
SecurityGroupIngress:
- IpProtocol: "-1"
FromPort: 0
ToPort: 0
CidrIp: 10.0.0.0/8
You possibly can learn up extra about all of the attainable arguments within the AWS Safety Group CloudFormation Reference.