Skip to content

Commit

Permalink
Revert "chore: add permission for ECS task to call legacy submission …
Browse files Browse the repository at this point in the history
…Lambda function name (#643)"

This reverts commit 66f98b9.
  • Loading branch information
craigzour committed May 1, 2024
1 parent 66f98b9 commit 7427e41
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions aws/lambdas/submission.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ resource "aws_lambda_permission" "submission" {
principal = var.ecs_iam_role_arn
}

/*
* This is a temporary change to allow the web application to call the legacy submission Lambda function name (see https://github.com/cds-snc/platform-forms-client/commit/48919e38b00c4ce591009f7dd076e3f8b4bbf5c3)
* It can be removed once we have released https://github.com/cds-snc/forms-terraform/pull/626 in Production.
*/

resource "aws_lambda_permission" "submission_option_2" {
statement_id = "AllowInvokeECS"
action = "lambda:InvokeFunction"
function_name = "submission" // This will be changed to Submission in the Lambda containerization pull request
principal = var.ecs_iam_role_arn
}

resource "aws_cloudwatch_log_group" "submission" {
name = "/aws/lambda/${aws_lambda_function.submission.function_name}"
kms_key_id = var.kms_key_cloudwatch_arn
Expand Down

0 comments on commit 7427e41

Please sign in to comment.