github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/sns/topic_encryption_with_cmk.tf.go (about)

     1  package sns
     2  
     3  var terraformTopicEncryptionUsesCMKGoodExamples = []string{
     4  	`
     5   resource "aws_sns_topic" "good_example" {
     6   	kms_master_key_id = "/blah"
     7   }
     8   `,
     9  }
    10  
    11  var terraformTopicEncryptionUsesCMKBadExamples = []string{
    12  	`
    13   resource "aws_sns_topic" "bad_example" {
    14      kms_master_key_id = "alias/aws/sns"
    15   }
    16   `,
    17  }
    18  
    19  var terraformTopicEncryptionUsesCMKLinks = []string{
    20  	`https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic#example-with-server-side-encryption-sse`,
    21  }
    22  
    23  var terraformTopicEncryptionUsesCMKRemediationMarkdown = ``