Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created April 7, 2025 17:25
Show Gist options
  • Select an option

  • Save KyMidd/ce978e3ee15d7b89b974ffb6319adc2d to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/ce978e3ee15d7b89b974ffb6319adc2d to your computer and use it in GitHub Desktop.
resource "aws_iam_role_policy" "DevOpsBotReceiver_Lambda" {
name = "InvokeLambda"
role = aws_iam_role.DevOpsBotReceiverRole.id
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Action = [
"lambda:InvokeFunction",
"lambda:InvokeAsync"
]
Resource = [aws_lambda_function.devopsbot_slack.arn]
}
]
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment