When user defines a role using base_roles field, there is actually no need to have a redundant permission field. Also, there is no need to force user to add member, when creating a role
Terraform Resources
No response
Detailed design
Just need to simply add default = [] in variables.tf to these two variables I mentioned above and problem solved.
variable "permissions" {
type = list(string)
description = "IAM permissions assigned to Custom Role."
default = []
}
variable "members" {
description = "List of members to be added to custom role."
type = list(string)
default = []
}
TL;DR
When user defines a role using
base_roles
field, there is actually no need to have a redundantpermission
field. Also, there is no need to force user to addmember
, when creating a roleTerraform Resources
No response
Detailed design
Just need to simply add
default = []
invariables.tf
to these two variables I mentioned above and problem solved.Additional information
No response