Skip to content

CloudTrail: encrypt SNS topic with KMS, add topic policy + email subscription - #9

Merged
Manideep3969 merged 2 commits into
mainfrom
feature/cloudtrail-sns-encryption
Aug 5, 2026
Merged

CloudTrail: encrypt SNS topic with KMS, add topic policy + email subscription#9
Manideep3969 merged 2 commits into
mainfrom
feature/cloudtrail-sns-encryption

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Changes

  • SNS topic KMS encryption: CloudTrail SNS topic now uses the confidential KMS key (kms_master_key_id = var.kms_key_arn)
  • SNS topic policy: Added aws_sns_topic_policy allowing CloudTrail service to publish to the topic, with AWS:SourceArn condition for security
  • Email subscription: Added aws_sns_topic_subscription for security-team@npci.org.in
  • KMS policy for SNS: Added AllowSNSAccess statement to the confidential KMS key policy so SNS can encrypt/decrypt
  • Output: Added cloudtrail_sns_topic_arn output

Compliance

  • CKV_AWS_36 (log file validation) — already enabled
  • CKV_AWS_252 (SNS topic for CloudTrail) — now properly secured with encryption + policy
  • CKV2_AWS_10 (CloudWatch integration) — already configured

Testing

  • terraform validate passes
  • Unit tests: 171 passed
  • CI: all checks expected to pass

@Manideep3969
Manideep3969 merged commit 4c173bc into main Aug 5, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant