github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/ec2/no_public_ip.cf.go (about)

     1  package ec2
     2  
     3  var cloudFormationNoPublicIpGoodExamples = []string{
     4  	`---
     5  Resources:
     6    GoodExample:
     7      Properties:
     8        ImageId: ami-123456
     9        InstanceType: t2.small
    10      Type: AWS::AutoScaling::LaunchConfiguration
    11  `,
    12  }
    13  
    14  var cloudFormationNoPublicIpBadExamples = []string{
    15  	`---
    16  Resources:
    17    BadExample:
    18      Properties:
    19        AssociatePublicIpAddress: true
    20        ImageId: ami-123456
    21        InstanceType: t2.small
    22      Type: AWS::AutoScaling::LaunchConfiguration
    23  `,
    24  }
    25  
    26  var cloudFormationNoPublicIpLinks = []string{}
    27  
    28  var cloudFormationNoPublicIpRemediationMarkdown = ``