Skip to content

Commit a4d8fd1

Browse files
committed
Correct AWS CDP IDBroker role's policy definitions for Terraform templates
Signed-off-by: Jim Enright <[email protected]>
1 parent 4c830fd commit a4d8fd1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

roles/platform/template/aws/plat_aws_authz_roles.tf.j2

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,18 @@ resource "aws_iam_instance_profile" "{{ plat__aws_idbroker_role_name }}-instance
7070
}
7171

7272
# Attach CDP IDBroker Assume Policy to the Role
73-
resource "aws_iam_role_policy_attachment" "{{ plat__aws_idbroker_role_name }}-attach" {
73+
resource "aws_iam_role_policy_attachment" "{{ plat__aws_idbroker_role_name }}-attach1" {
7474
role = aws_iam_role.{{ plat__aws_idbroker_role_name }}.name
7575
policy_arn = aws_iam_policy.{{ plat__aws_idbroker_policy_name }}.arn
7676
}
7777

78+
# Attach AWS Log Location Policy to the Role
79+
resource "aws_iam_role_policy_attachment" "{{ plat__aws_idbroker_role_name }}-attach2" {
80+
81+
role = aws_iam_role.{{ plat__aws_idbroker_role_name }}.name
82+
policy_arn = aws_iam_policy.{{ plat__aws_log_location_policy_name }}.arn
83+
}
84+
7885
# ------- AWS Service Roles - CDP Log -------
7986
# First create the Assume role policy document
8087
data "aws_iam_policy_document" "{{ plat__aws_log_role_name }}-policy-doc" {

0 commit comments

Comments
 (0)