-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: Added number_of_ variables for iam-assumable-role submodules #96
feat: Added number_of_ variables for iam-assumable-role submodules #96
Conversation
…ing runtime" in iam-assumable-role
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.
Good. Also, please update examples and docs (run pre-commit run -a
), if you can.
@@ -66,7 +66,7 @@ resource "aws_iam_role" "this" { | |||
} | |||
|
|||
resource "aws_iam_role_policy_attachment" "custom" { | |||
count = var.create_role ? length(var.role_policy_arns) : 0 | |||
count = var.create_role ? var.number_role_policy_arns : 0 |
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.
number_of_role_policy_arns
@@ -76,6 +76,12 @@ variable "custom_role_policy_arns" { | |||
default = [] | |||
} | |||
|
|||
variable "number_custom_role_policy_arns" { |
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.
number_of_custom_role_policy_arns
Thank you! v2.26.0 has been just released. |
Please revert this change. It is not backwards compatible. |
Wouldn't leveraging |
@horjulf |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
fix for terraform error for assumable-role"number of resources cannot be determined during runtime" in iam-assumable-role