From fb2c971ac412c5b43f5ce6e5a36618326f1d0b63 Mon Sep 17 00:00:00 2001 From: connormaglynn Date: Wed, 15 Jan 2025 16:37:46 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20Cloud=20Trail=20Integratio?= =?UTF-8?q?n=20By=20Providing=20Manually=20Created=20ARN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../audit_log_streaming_github.tf | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/terraform/environments/operations-engineering/audit_log_streaming_github.tf b/terraform/environments/operations-engineering/audit_log_streaming_github.tf index 1f0f10150c1..0ee2acdf8ae 100644 --- a/terraform/environments/operations-engineering/audit_log_streaming_github.tf +++ b/terraform/environments/operations-engineering/audit_log_streaming_github.tf @@ -2,27 +2,6 @@ module "github-cloudtrail-auditlog" { source = "github.com/ministryofjustice/operations-engineering-cloudtrail-lake-github-audit-log-terraform-module?ref=main" create_github_auditlog_s3bucket = true github_auditlog_s3bucket = "github-audit-log-landing" - cloudtrail_lake_channel_arn = aws_cloudtrail_channel.github_channel.arn + cloudtrail_lake_channel_arn = "arn:aws:cloudtrail:eu-west-2:211125434264:channel/810d471f-21e9-4552-b839-9e334f7fbe51" github_audit_allow_list = ".*" } - -resource "aws_cloudtrail_event_data_store" "github_audit_logs" { - name = "github-audit-logs-store" - retention_period = 90 - termination_protection_enabled = true - - advanced_event_selector { - name = "GitHubAuditLogs" - field_selector { - field = "eventSource" - equals = ["GitHub"] - } - } -} - -resource "aws_cloudtrail_channel" "github_channel" { - name = "github-audit-log-channel" - source = "Github" - destinations = [aws_cloudtrail_event_data_store.github_audit_logs.arn] - advanced_event_selector = aws_cloudtrail_event_data_store.github_audit_logs.advanced_event_selector -}