Issues using the CloudTrail module with a connect SNS topic. #697
-
Upon trying to connect the SNS networking module with the security CloudTrail module I met with the error:
It is worth noting that I am using a CMK KMS key, which is created along side the other module listed above via the KMS master key module. My value for the SNS module's
As well as the KMS key has the following policy:
Which leads to believe the SNS KMS key policy ought to allow access to CloudTrail. I am miss understanding the error message? Anyone else run into this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @rsmets, are you using the SNS module in the You can use the
|
Beta Was this translation helpful? Give feedback.
Hey @rsmets, are you using the SNS module in the
terraform-aws-messaging
repo to create an SNS topic? When using the module, you can pass in thekms_master_key_id
variable. If you believe it's related to the key policy issue, you can grant the appropriate permission and see if that fixes the problem.You can use the
aws_kms_key
resource to create a CMK and use theaws_iam_policy_document
to configure key policy. FOr instance, the terraform code would look something like this: