Skip to content

Issues using the CloudTrail module with a connect SNS topic. #697

Answered by james03160927
rsmets asked this question in Help
Discussion options

You must be logged in to vote

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 the kms_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 the aws_iam_policy_document to configure key policy. FOr instance, the terraform code would look something like this:

resource "aws_kms_key" ".." {
  description = ...
  policy      = data.aws_iam_policy_document.example.json
}

data "aws_iam_policy_document" "db_kms_key_policy" {
  statement {
    ...
  }
  statement {
    effect =…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rsmets
Comment options

@james03160927
Comment options

Answer selected by rsmets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment