Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active April 30, 2023 20:04
Show Gist options
  • Select an option

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

Select an option

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