-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated managed policy arn ref #498
base: main
Are you sure you want to change the base?
Conversation
|
3 similar comments
|
|
|
d8cb562
to
1f50a08
Compare
|
toset
on list of stringstags = merge(local.tags, { | ||
Name = "${var.iam_resource_names_prefix}-role-${var.name}" | ||
}) | ||
} | ||
|
||
# IAM role policy attachment | ||
resource "aws_iam_role_policy_attachment" "this" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good, but calling it 'this' can we have a better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we change that it'd make sense to do a bigger overhaul of the module as I was just following the naming convention applied to most of the resources in this module. Perhaps that'd be a separate PR?
Also that could possibly cause all users upgrading to need to rebuild their resources just for the name change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments addressed, approved!
We get persistent warnings that
managed_policy_arn
is deprecated.Replace this with resource aws_iam_role_policy_attachment in response to deployment warnings: