From 1cce759fcd3add6df94071ec641d8517c0774c7b Mon Sep 17 00:00:00 2001 From: mohit Date: Mon, 25 Mar 2024 17:28:26 +0000 Subject: [PATCH] cleaning up code for iam permissions --- infrastructure/batch.tf | 19 ------------------- infrastructure/ecr.tf | 4 ++-- infrastructure/ecs.tf | 2 +- infrastructure/provider.tf | 10 ++++++++++ 4 files changed, 13 insertions(+), 22 deletions(-) diff --git a/infrastructure/batch.tf b/infrastructure/batch.tf index 39842480..9216f3d6 100644 --- a/infrastructure/batch.tf +++ b/infrastructure/batch.tf @@ -24,22 +24,3 @@ module "batch_job_defintiion" { image = module.ecr_pre_processing.ecr_repository_url fargate_flag = false } - -# The ECS task will need to invoke SageMaker endpoint -resource "aws_iam_policy" "sagemaker_invoke" { - name = "SageMakerInvokePolicy" - description = "Policy that allows ECS tasks to invoke SageMaker endpoints" - - policy = <