diff --git a/modules/flyte/README.md b/modules/flyte/README.md
index f411c348..ed61a2c5 100644
--- a/modules/flyte/README.md
+++ b/modules/flyte/README.md
@@ -53,7 +53,7 @@ No modules.
| [kms\_info](#input\_kms\_info) | key\_id = KMS key id.
key\_arn = KMS key arn.
enabled = KMS key is enabled |
object({| n/a | yes | | [platform\_namespace](#input\_platform\_namespace) | Name of Domino platform namespace for this deploy | `string` | n/a | yes | | [region](#input\_region) | AWS region for the deployment | `string` | n/a | yes | -| [serviceaccount\_names](#input\_serviceaccount\_names) | Service account names for Flyte |
key_id = string
key_arn = string
enabled = bool
})
object({| `{}` | no | +| [serviceaccount\_names](#input\_serviceaccount\_names) | Service account names for Flyte |
datacatalog = optional(string, "datacatalog")
flyteadmin = optional(string, "flyteadmin")
flytepropeller = optional(string, "flytepropeller")
})
object({| `{}` | no | ## Outputs diff --git a/modules/flyte/iam.tf b/modules/flyte/iam.tf index 8f11f26c..ba77c66b 100644 --- a/modules/flyte/iam.tf +++ b/modules/flyte/iam.tf @@ -15,6 +15,7 @@ resource "aws_iam_role" "flyte_controlplane" { "${trimprefix(local.oidc_provider_url, "https://")}:sub" : [ "system:serviceaccount:${var.platform_namespace}:${var.serviceaccount_names.datacatalog}", "system:serviceaccount:${var.platform_namespace}:${var.serviceaccount_names.flytepropeller}", + "system:serviceaccount:${var.platform_namespace}:${var.serviceaccount_names.importer}", ] } } diff --git a/modules/flyte/variables.tf b/modules/flyte/variables.tf index 9536a831..645156c7 100644 --- a/modules/flyte/variables.tf +++ b/modules/flyte/variables.tf @@ -54,6 +54,7 @@ variable "serviceaccount_names" { datacatalog = optional(string, "datacatalog") flyteadmin = optional(string, "flyteadmin") flytepropeller = optional(string, "flytepropeller") + importer = optional(string, "domino-data-importer") }) default = {}
datacatalog = optional(string, "datacatalog")
flyteadmin = optional(string, "flyteadmin")
flytepropeller = optional(string, "flytepropeller")
importer = optional(string, "domino-data-importer")
})