File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ Here's the gist of using it directly from github.
138138| bucket | Backup and Restore bucket. | ` string ` | n/a | yes |
139139| cluster\_ name | Cluster name. | ` string ` | n/a | yes |
140140| description | Namespace description | ` string ` | ` "velero-back-up-and-restore" ` | no |
141+ | iam\_ role\_ name | Name of the Velero IAM role | ` string ` | ` "" ` | no |
141142| name | namespace name | ` string ` | ` "velero" ` | no |
142143| namespace\_ deploy | whther or not to deploy namespace | ` bool ` | ` false ` | no |
143144| openid\_ connect\_ provider\_ uri | OpenID Connect Provider for EKS to enable IRSA. | ` string ` | n/a | yes |
@@ -157,10 +158,10 @@ Here's the gist of using it directly from github.
157158
158159<!-- START makefile-doc -->
159160```
160- $ make help
161+ $ make help
161162hooks Commit hooks setup
162163validate Validate with pre-commit hooks
163- changelog Update changelog
164+ changelog Update changelog
164165```
165166<!-- END makefile-doc -->
166167
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ data aws_iam_policy_document policy {
6262}
6363
6464resource aws_iam_role this {
65- name = format (" %s-%s" , var. cluster_name , var. name )
65+ name = var . iam_role_name == " " ? format (" %s-%s" , var. cluster_name , var. name ) : var . iam_role_name
6666 assume_role_policy = data. aws_iam_policy_document . assume_role . json
6767 tags = merge (var. tags ,
6868 { Attached = var.name },
Original file line number Diff line number Diff line change @@ -59,3 +59,9 @@ variable "bucket" {
5959 description = " Backup and Restore bucket."
6060 type = string
6161}
62+
63+ variable "iam_role_name" {
64+ description = " Name of the Velero IAM role"
65+ type = string
66+ default = " "
67+ }
You can’t perform that action at this time.
0 commit comments