Skip to content

Commit

Permalink
fix: reducing verbosity of role and profile (#1358)
Browse files Browse the repository at this point in the history
Co-authored-by: Callum <[email protected]>
  • Loading branch information
toast-gear and Callum authored Nov 3, 2021
1 parent a250b96 commit 922ef99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/runners/policies-runner.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
data "aws_caller_identity" "current" {}

resource "aws_iam_role" "runner" {
name = "${var.environment}-github-action-runners-runner-role"
name = "${var.environment}-runner-role"
assume_role_policy = templatefile("${path.module}/policies/instance-role-trust-policy.json", {})
path = local.role_path
permissions_boundary = var.role_permissions_boundary
tags = local.tags
}

resource "aws_iam_instance_profile" "runner" {
name = "${var.environment}-github-action-runners-profile"
name = "${var.environment}-runner-profile"
role = aws_iam_role.runner.name
path = local.instance_profile_path
}
Expand Down

0 comments on commit 922ef99

Please sign in to comment.