File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -615,14 +615,14 @@ data "aws_iam_policy_document" "ssm" {
615
615
var . runner_gitlab . preregistered_runner_token_ssm_parameter_name ,
616
616
aws_ssm_parameter . runner_registration_token . name
617
617
]
618
- ) : " arn:${ data . aws_partition . current . partition } :ssm:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :parameter/${ name } "
618
+ ) : " arn:${ data . aws_partition . current . partition } :ssm:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :parameter/${ trimprefix ( name, " / " ) } "
619
619
]
620
620
}
621
621
622
622
statement {
623
623
actions = [" ssm:PutParameter" ]
624
624
resources = [
625
- " arn:${ data . aws_partition . current . partition } :ssm:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :parameter/${ aws_ssm_parameter . runner_registration_token . name } "
625
+ " arn:${ data . aws_partition . current . partition } :ssm:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :parameter/${ trimprefix ( aws_ssm_parameter. runner_registration_token . name , " / " ) } "
626
626
]
627
627
}
628
628
}
You can’t perform that action at this time.
0 commit comments