Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active January 13, 2025 01:49
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/c37349907f8fd524b71229526ecf0786 to your computer and use it in GitHub Desktop.
data "aws_iam_policy_document" "DevOpsBotIamRole_assume_role" {
statement {
effect = "Allow"
principals {
type = "Service"
identifiers = ["lambda.amazonaws.com"]
}
actions = ["sts:AssumeRole"]
}
}
resource "aws_iam_role" "DevOpsBotIamRole" {
name = "DevOpsBotIamRole"
assume_role_policy = data.aws_iam_policy_document.DevOpsBotIamRole_assume_role.json
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment