Skip to content

Commit

Permalink
PLAT-8781: Give importer access to flytepropeller (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Secretions authored Nov 14, 2024
1 parent 3c2376c commit d020b43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/flyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ No modules.
| <a name="input_kms_info"></a> [kms\_info](#input\_kms\_info) | key\_id = KMS key id.<br> key\_arn = KMS key arn.<br> enabled = KMS key is enabled | <pre>object({<br> key_id = string<br> key_arn = string<br> enabled = bool<br> })</pre> | n/a | yes |
| <a name="input_platform_namespace"></a> [platform\_namespace](#input\_platform\_namespace) | Name of Domino platform namespace for this deploy | `string` | n/a | yes |
| <a name="input_region"></a> [region](#input\_region) | AWS region for the deployment | `string` | n/a | yes |
| <a name="input_serviceaccount_names"></a> [serviceaccount\_names](#input\_serviceaccount\_names) | Service account names for Flyte | <pre>object({<br> datacatalog = optional(string, "datacatalog")<br> flyteadmin = optional(string, "flyteadmin")<br> flytepropeller = optional(string, "flytepropeller")<br> })</pre> | `{}` | no |
| <a name="input_serviceaccount_names"></a> [serviceaccount\_names](#input\_serviceaccount\_names) | Service account names for Flyte | <pre>object({<br> datacatalog = optional(string, "datacatalog")<br> flyteadmin = optional(string, "flyteadmin")<br> flytepropeller = optional(string, "flytepropeller")<br> importer = optional(string, "domino-data-importer")<br> })</pre> | `{}` | no |

## Outputs

Expand Down
1 change: 1 addition & 0 deletions modules/flyte/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
]
}
}
Expand Down
1 change: 1 addition & 0 deletions modules/flyte/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit d020b43

Please sign in to comment.