From c3f2a63c89d0128568a777d2631967616da9c4ba Mon Sep 17 00:00:00 2001 From: drduhe Date: Mon, 26 Aug 2024 14:01:50 -0600 Subject: [PATCH] chore: remove firelens references --- lib/osml/model_runner/roles/mr_execution_role.ts | 4 ---- lib/osml/model_runner/roles/mr_task_role.ts | 2 -- 2 files changed, 6 deletions(-) diff --git a/lib/osml/model_runner/roles/mr_execution_role.ts b/lib/osml/model_runner/roles/mr_execution_role.ts index 0217507..d1fc9ac 100644 --- a/lib/osml/model_runner/roles/mr_execution_role.ts +++ b/lib/osml/model_runner/roles/mr_execution_role.ts @@ -59,9 +59,6 @@ export class MRExecutionRole extends Construct { constructor(scope: Construct, id: string, props: MRExecutionRoleProps) { super(scope, id); - const firelensLogGroupName = `/aws/${ - new MRDataplaneConfig().CW_METRICS_NAMESPACE - }/MRFireLens`; const serviceLogGroupName = `/aws/${ new MRDataplaneConfig().CW_METRICS_NAMESPACE }/MRService`; @@ -100,7 +97,6 @@ export class MRExecutionRole extends Construct { "logs:CreateLogGroup" ], resources: [ - `arn:${this.partition}:logs:${props.account.region}:${props.account.id}:log-group:${firelensLogGroupName}:*`, `arn:${this.partition}:logs:${props.account.region}:${props.account.id}:log-group:${serviceLogGroupName}:*` ] }) diff --git a/lib/osml/model_runner/roles/mr_task_role.ts b/lib/osml/model_runner/roles/mr_task_role.ts index 716b59d..35e8ab6 100644 --- a/lib/osml/model_runner/roles/mr_task_role.ts +++ b/lib/osml/model_runner/roles/mr_task_role.ts @@ -92,7 +92,6 @@ export class MRTaskRole extends Construct { this.mrDataplaneConfig.DDB_ENDPOINT_PROCESSING_TABLE; const DDB_REGION_REQUEST_TABLE_NAME = this.mrDataplaneConfig.DDB_REGION_REQUEST_TABLE; - const MR_FIRELENS_LOG_GROUP_NAME = `/aws/${this.mrDataplaneConfig.CW_METRICS_NAMESPACE}/MRFireLens`; const MR_SERVICE_LOG_GROUP_NAME = `/aws/${this.mrDataplaneConfig.CW_METRICS_NAMESPACE}/MRService`; const MR_HTTPENDPOINT_LOG_GROUP_NAME = `/aws/${this.mrDataplaneConfig.CW_METRICS_NAMESPACE}/HTTPEndpoint`; @@ -240,7 +239,6 @@ export class MRTaskRole extends Construct { "logs:CreateLogGroup" ], resources: [ - `arn:${this.partition}:logs:${props.account.region}:${props.account.id}:log-group:${MR_FIRELENS_LOG_GROUP_NAME}:*`, `arn:${this.partition}:logs:${props.account.region}:${props.account.id}:log-group:${MR_SERVICE_LOG_GROUP_NAME}:*`, `arn:${this.partition}:logs:${props.account.region}:${props.account.id}:log-group:${MR_HTTPENDPOINT_LOG_GROUP_NAME}:*`, `arn:${this.partition}:logs:${props.account.region}:${props.account.id}:log-group:/aws/sagemaker/Endpoints/*`