Skip to content

Commit

Permalink
DOM-56630 Output Flyte storage account name and key (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
pocheung1 authored Apr 18, 2024
1 parent 4b83147 commit 9f621d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/flyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ No modules.
| <a name="output_data_container_name"></a> [data\_container\_name](#output\_data\_container\_name) | Flyte data storage container name |
| <a name="output_dataplane_client_id"></a> [dataplane\_client\_id](#output\_dataplane\_client\_id) | Flyte dataplane client id |
| <a name="output_metadata_container_name"></a> [metadata\_container\_name](#output\_metadata\_container\_name) | Flyte metadata storage container name |
| <a name="output_storage_account_key"></a> [storage\_account\_key](#output\_storage\_account\_key) | Flyte storage account key |
| <a name="output_storage_account_name"></a> [storage\_account\_name](#output\_storage\_account\_name) | Flyte storage account name |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
11 changes: 11 additions & 0 deletions modules/flyte/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ output "dataplane_client_id" {
value = azurerm_user_assigned_identity.flyte_dataplane.client_id
description = "Flyte dataplane client id"
}

output "storage_account_name" {
description = "Flyte storage account name"
value = azurerm_storage_account.flyte.name
}

output "storage_account_key" {
description = "Flyte storage account key"
value = azurerm_storage_account.flyte.primary_access_key
sensitive = true
}
5 changes: 5 additions & 0 deletions modules/flyte/tests/outputs.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ run "test_outputs" {
condition = output.data_container_name == azurerm_storage_container.flyte_data.name
error_message = "Incorrect Flyte data container name output"
}

assert {
condition = output.storage_account_name == azurerm_storage_account.flyte.name
error_message = "Incorrect Flyte storage account name output"
}
}

0 comments on commit 9f621d8

Please sign in to comment.