Tuesday, November 28, 2023
HomeSoftware EngineeringEasy methods to Create an AWS Safety Group in CloudFormation

Easy methods to Create an AWS Safety Group in CloudFormation


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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments