aws-health-aware icon indicating copy to clipboard operation
aws-health-aware copied to clipboard

/AHA-LambdaFunction calls GetSecretValue even though no MS Channel is defined

Open saefty opened this issue 1 year ago • 0 comments

Our cloudtrail alarming is reporting this error when deploying the lambda with only a slack url. arn:aws:sts::xxx:assumed-role/AHA-LambdaExecutionRole-ejo5owz1/AHA-LambdaFunction-ejo5owz1 called GetSecretValue but failed due to AccessDenied

Cause: IAM Policy is only created when string is not empty, but the code can not know if the channel id was empty. Therfore it try to fetch it and fails. grafik

saefty avatar May 05 '23 09:05 saefty