Skip to content

Commit

Permalink
Merge branch 'cpapke/max-role-name-length' into sonar-qa-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonar-cpapke committed Jun 3, 2024
2 parents ff2c169 + 104679b commit 108abf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aws/sonar-base-instance/iam_role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "aws_iam_instance_profile" "dsf_node_instance_iam_profile" {

resource "aws_iam_role" "dsf_node_role" {
count = var.instance_profile_name == null ? 1 : 0
name = join("-", [var.name, "role"])
name = "${substr(var.name, 0, 64-length(var.name))}-role"
managed_policy_arns = null
assume_role_policy = local.role_assume_role_policy
inline_policy {
Expand Down

0 comments on commit 108abf4

Please sign in to comment.