From aafb463b9a67cb8341f03378b43c0b7412ac6358 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Thu, 2 Jan 2025 14:11:13 -0800 Subject: [PATCH] fix(iam): add back some of the kinesis iam --- infrastructure/user-list-search/lambda_codedeploy.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 infrastructure/user-list-search/lambda_codedeploy.tf diff --git a/infrastructure/user-list-search/lambda_codedeploy.tf b/infrastructure/user-list-search/lambda_codedeploy.tf new file mode 100644 index 000000000..01a3ecc0d --- /dev/null +++ b/infrastructure/user-list-search/lambda_codedeploy.tf @@ -0,0 +1,11 @@ +resource "aws_iam_role" "lambda_codedeploy_role" { + name = "${local.prefix}-LambdaCodeDeployRole" + assume_role_policy = data.aws_iam_policy_document.codedeploy_assume_role.json +} + + +resource "aws_iam_role_policy_attachment" "lambda_codedeploy_role" { + policy_arn = "arn:aws:iam::aws:policy/service-role/AWSCodeDeployRoleForLambda" + #Depending on the service there are different types. + role = aws_iam_role.lambda_codedeploy_role.name +}