Commit 833d86ba authored by Kostas Stavropoulos's avatar Kostas Stavropoulos Committed by GitHub

feat: Add role description variable for assumable role with oidc (#98)

parent d315f1f5
......@@ -33,6 +33,7 @@ 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\_name | IAM role name | `string` | `""` | no |
| role\_description | IAM Role description | `string` | `""` | 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
description = var.role_description
path = var.role_path
max_session_duration = var.max_session_duration
......
......@@ -34,6 +34,12 @@ variable "role_name" {
default = ""
}
variable "role_description" {
description = "IAM Role description"
type = string
default = ""
}
variable "role_path" {
description = "Path of IAM role"
type = string
......
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