Commit a42590da authored by Jeff Bachtel's avatar Jeff Bachtel Committed by GitHub

feat: Add role_name_prefix option for oidc roles (#101)

parent 3daad079
......@@ -33,7 +33,8 @@ This module supports IAM Roles for kubernetes service accounts as described in t
| provider\_url | URL of the OIDC Provider. Use provider\_urls to specify several URLs. | `string` | `""` | no |
| provider\_urls | List of URLs of the OIDC Providers | `list(string)` | `[]` | no |
| role\_description | IAM Role description | `string` | `""` | no |
| role\_name | IAM role name | `string` | `""` | no |
| role\_name | IAM role name | `string` | `null` | no |
| role\_name\_prefix | IAM role name prefix | `string` | `null` | no |
| role\_path | Path of IAM role | `string` | `"/"` | no |
| role\_permissions\_boundary\_arn | Permissions boundary ARN to use for IAM role | `string` | `""` | no |
| role\_policy\_arns | List of ARNs of IAM policies to attach to IAM role | `list(string)` | `[]` | no |
......
......@@ -54,6 +54,7 @@ resource "aws_iam_role" "this" {
count = var.create_role ? 1 : 0
name = var.role_name
name_prefix = var.role_name_prefix
description = var.role_description
path = var.role_path
max_session_duration = var.max_session_duration
......
......@@ -31,7 +31,13 @@ variable "tags" {
variable "role_name" {
description = "IAM role name"
type = string
default = ""
default = null
}
variable "role_name_prefix" {
description = "IAM role name prefix"
type = string
default = null
}
variable "role_description" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment