Thursday, September 21, 2023
HomeSoftware EngineeringHow one can Create an AWS Safety Group in CloudFormation

How one can Create an AWS Safety Group in CloudFormation


Beneath is a straightforward CloudFormation script block to create a Safety Group in AWS.

Assets:
  SampleAppAppstreamSG:
    Sort: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Inbound and outbound site visitors for service
      GroupName: 'sampleappsg-123'
      VpcId: !Ref vpcid
      Tags:
        - Key: "Title"
          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 potential arguments within the AWS Safety Group CloudFormation Reference.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments