From 909e699d5a5d7d5e3371cf51f4560a388d4ffa1c Mon Sep 17 00:00:00 2001 From: Leo Toikka Date: Sat, 17 Jun 2023 16:45:45 +0300 Subject: [PATCH] Add sagemaker:AddTags policy for CreateTransformJob policy statements Fixes: aws/aws-cdk#26012. --- .../lib/sagemaker/create-transform-job.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/create-transform-job.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/create-transform-job.ts index 9503c6e432339..4c86d01c4a280 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/create-transform-job.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/create-transform-job.ts @@ -282,6 +282,10 @@ export class SageMakerCreateTransformJob extends sfn.TaskStateBase { }), ], }), + new iam.PolicyStatement({ + actions: ['sagemaker:AddTags'], + resources: ['*'], + }), ); }