github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/azure/monitor/capture_all_regions.tf.go (about)

     1  package monitor
     2  
     3  var terraformCaptureAllRegionsGoodExamples = []string{
     4  	`
     5   resource "azurerm_monitor_log_profile" "bad_example" {
     6     name = "bad_example"
     7   
     8     categories = []
     9   
    10     locations = [
    11   	"eastus",
    12   	"eastus2",
    13   	"southcentralus",
    14   	"westus2",
    15   	"westus3",
    16   	"australiaeast",
    17   	"southeastasia",
    18   	"northeurope",
    19   	"swedencentral",
    20   	"uksouth",
    21   	"westeurope",
    22   	"centralus",
    23   	"northcentralus",
    24   	"westus",
    25   	"southafricanorth",
    26   	"centralindia",
    27   	"eastasia",
    28   	"japaneast",
    29   	"jioindiawest",
    30   	"koreacentral",
    31   	"canadacentral",
    32   	"francecentral",
    33   	"germanywestcentral",
    34   	"norwayeast",
    35   	"switzerlandnorth",
    36   	"uaenorth",
    37   	"brazilsouth",
    38   	"centralusstage",
    39   	"eastusstage",
    40   	"eastus2stage",
    41   	"northcentralusstage",
    42   	"southcentralusstage",
    43   	"westusstage",
    44   	"westus2stage",
    45   	"asia",
    46   	"asiapacific",
    47   	"australia",
    48   	"brazil",
    49   	"canada",
    50   	"europe",
    51   	"global",
    52   	"india",
    53   	"japan",
    54   	"uk",
    55   	"unitedstates",
    56   	"eastasiastage",
    57   	"southeastasiastage",
    58   	"centraluseuap",
    59   	"eastus2euap",
    60   	"westcentralus",
    61   	"southafricawest",
    62   	"australiacentral",
    63   	"australiacentral2",
    64   	"australiasoutheast",
    65   	"japanwest",
    66   	"jioindiacentral",
    67   	"koreasouth",
    68   	"southindia",
    69   	"westindia",
    70   	"canadaeast",
    71   	"francesouth",
    72   	"germanynorth",
    73   	"norwaywest",
    74   	"swedensouth",
    75   	"switzerlandwest",
    76   	"ukwest",
    77   	"uaecentral",
    78   	"brazilsoutheast",
    79     ]
    80   
    81     retention_policy {
    82       enabled = true
    83       days    = 7
    84     }
    85   }
    86   
    87   			`,
    88  }
    89  
    90  var terraformCaptureAllRegionsBadExamples = []string{
    91  	`
    92   
    93   resource "azurerm_monitor_log_profile" "bad_example" {
    94     name = "bad_example"
    95   
    96     categories = []
    97   
    98     locations = [
    99       "westus",
   100       "global",
   101     ]
   102   
   103     retention_policy {
   104       enabled = true
   105       days    = 7
   106     }
   107   }
   108   `,
   109  }
   110  
   111  var terraformCaptureAllRegionsLinks = []string{
   112  	`https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_log_profile#locations`,
   113  }
   114  
   115  var terraformCaptureAllRegionsRemediationMarkdown = ``