File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ resource "aws_iam_role" "pool" {
81
81
}
82
82
83
83
resource "aws_iam_role_policy" "pool" {
84
- name = " pool-policy"
84
+ name = " ${ var . config . prefix } - pool-policy"
85
85
role = aws_iam_role. pool . name
86
86
policy = templatefile (" ${ path . module } /policies/lambda-pool.json" , {
87
87
arn_ssm_parameters_path_config = var.config.arn_ssm_parameters_path_config
@@ -94,7 +94,7 @@ resource "aws_iam_role_policy" "pool" {
94
94
}
95
95
96
96
resource "aws_iam_role_policy" "pool_logging" {
97
- name = " logging-policy"
97
+ name = " ${ var . config . prefix } - logging-policy"
98
98
role = aws_iam_role. pool . name
99
99
policy = templatefile (" ${ path . module } /../policies/lambda-cloudwatch.json" , {
100
100
log_group_arn = aws_cloudwatch_log_group.pool.arn
@@ -144,7 +144,7 @@ data "aws_iam_policy_document" "lambda_xray" {
144
144
145
145
resource "aws_iam_role_policy" "pool_xray" {
146
146
count = var. tracing_config . mode != null ? 1 : 0
147
- name = " xray-policy"
147
+ name = " ${ var . config . prefix } - xray-policy"
148
148
policy = data. aws_iam_policy_document . lambda_xray [0 ]. json
149
149
role = aws_iam_role. pool . name
150
150
}
You can’t perform that action at this time.
0 commit comments