-
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
add managed policy exclusivity, replace deprecated manged_policy_arn
value
#496
base: main
Are you sure you want to change the base?
add managed policy exclusivity, replace deprecated manged_policy_arn
value
#496
Conversation
|
…tance_profile_policies` to a map variable
|
@@ -149,7 +149,10 @@ variable "iam_resource_names_prefix" { | |||
} | |||
|
|||
variable "instance_profile_policies" { | |||
type = list(string) | |||
type = map(string) | |||
default = { |
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.
Could this value be moved up to the local value? As written, this PR would only add the AmazonSSMManagedInstanceCore
policy when instance_profile_policies
is not set. I'd like to preserve the original intent if possible by including this value directly into the local that the for
expression is constructed from. Unless, of course, there's something I've missed?
We get persistent warnings that
managed_policy_arn
is deprecated.Replace this with resource aws_iam_role_policy_attachments_exclusive in response to deployment warnings:
Using the 'exclusive' variant of this resource as it says that's the current behavior of managed_policy_arn that's being replaced.