You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: update deprecated managed_policy_arns in place for aws_iam_role_policy_attachment @AyhanSetirekli (#73)
## what
Update to remove the now deprecated managed_policy_arns (from the aws_iam_policy resource) and use the aws_iam_role_policy_attachment resource instead.
When this code is currently used, Terraform throws the following warning:
│ Warning: Argument is deprecated
│
│ with module.transfer_sftp[0].aws_iam_role.s3_access_for_sftp_users["ayhan"],
│ on .terraform/modules/transfer_sftp/main.tf line 226, in resource "aws_iam_role""s3_access_for_sftp_users":
│ 226: managed_policy_arns = [aws_iam_policy.s3_access_for_sftp_users[each.value.user_name].arn]
│
│ managed_policy_arns is deprecated. Use the aws_iam_role_policy_attachment resource instead. If Terraform should exclusively manage all managed policy attachments (the current behavior of this argument), use the aws_iam_role_policy_attachments_exclusive resource as well.
│
│ (and one more similar warning elsewhere)