Skip to content

Commit

Permalink
Update_251124_1
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckingham authored and Buckingham committed Nov 25, 2024
1 parent 1e870b5 commit 2d45069
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform/environments/ppud/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,11 @@ data "archive_file" "zip_the_send_cpu_notification_code_prod" {

resource "aws_lambda_permission" "allow_cloudwatch_to_call_lambda_send_cpu_graph_dev" {
count = local.is-development == true ? 1 : 0
statement_id = "AllowExecutionFromCloudWatch"
statement_id = "AllowAccesstoCloudWatch"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.terraform_lambda_func_send_cpu_graph_dev[0].function_name
principal = "lambda.alarms.cloudwatch.amazonaws.com"
source_arn = "arn:aws:cloudwatch:eu-west-2:${local.environment_management.account_ids["ppud-development"]}:alarm:*"
principal = "cloudwatch.amazonaws.com"
source_arn = "arn:aws:cloudwatch:eu-west-2:${local.environment_management.account_ids["ppud-development"]}:*"
}

resource "aws_lambda_function" "terraform_lambda_func_send_cpu_graph_dev" {
Expand All @@ -507,9 +507,9 @@ resource "aws_lambda_function" "terraform_lambda_func_send_cpu_graph_dev" {
depends_on = [aws_iam_role_policy_attachment.attach_lambda_policy_cloudwatch_get_metric_data_to_lambda_role_cloudwatch_get_metric_data_dev]
reserved_concurrent_executions = 5
# code_signing_config_arn = "arn:aws:lambda:eu-west-2:${local.environment_management.account_ids["ppud-development"]}:code-signing-config:csc-0c7136ccff2de748f"
dead_letter_config {
target_arn = aws_sqs_queue.lambda_queue_dev[0].arn
}
# dead_letter_config {
# target_arn = aws_sqs_queue.lambda_queue_dev[0].arn
# }
tracing_config {
mode = "Active"
}
Expand Down

0 comments on commit 2d45069

Please sign in to comment.