-
Notifications
You must be signed in to change notification settings - Fork 41
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
Enhancements from web-platform #337
Conversation
0365d2a
to
1ac1c20
Compare
@@ -23,7 +23,7 @@ data "aws_iam_policy_document" "aws_ebs_csi_driver_assume_role_policy" { | |||
|
|||
resource "aws_iam_role" "aws_ebs_csi_driver" { | |||
count = local.aws_ebs_csi_driver_iam_role_count | |||
name = "EksEBSCSIDriver-${var.name}" | |||
name = "${var.iam_role_name_prefix}EksEBSCSIDriver-${var.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.
name = "${var.iam_role_name_prefix}EksEBSCSIDriver-${var.name}" | |
name = "${var.iam_role_name_prefix}-EksEBSCSIDriver-${var.name}" |
would be nice for readability - or do you need this as-written to be compatible with with what you've implemented for the web platform clusters?
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 this makes the prefix non optional (default role name will be -EksEBSCSIDriver-nanana
)?
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.
Perhaps we can do something like
name = "${var.iam_role_name_prefix}EksEBSCSIDriver-${var.name}" | |
name = join("-", compact([var.iam_role_name_prefix, "EksEBSCSIDriver", var.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.
🤷 then we have -
in the middle of camelcased names though
GlobalWebPlatformEksEBSCSIDriver-clustername
vs
GlobalWebPlatform-EksEBSCSIDriver-clustername
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.
ah yes neater than the suggestion I was mid-writing with a var null condition ❤️
📝 These are some enhancements we have been using on the web platform clusters for some time!
It would be great to merge them in so we can use the mainline release!