Skip to content

Commit

Permalink
feat: Add role description variable for assumable role with oidc (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostavro authored Oct 16, 2020
1 parent d315f1f commit 833d86b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/iam-assumable-role-with-oidc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions modules/iam-assumable-role-with-oidc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions modules/iam-assumable-role-with-oidc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 833d86b

Please sign in to comment.