Skip to content

v2.3.0

Latest
Compare
Choose a tag to compare
@cloudposse-releaser cloudposse-releaser released this 22 Apr 14:15
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.

why

  • The managed_policy_arns attribute was deprecated as part of the Terraform AWS Provider v5.72.0 Release (15th Oct 2024).
  • 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)

references