Skip to content

Commit

Permalink
Merge pull request #10 from truefoundry/platform-user-enabled-output
Browse files Browse the repository at this point in the history
Added an output to show if platform user is enabled
  • Loading branch information
dunefro authored Aug 19, 2024
2 parents 49f0cc8 + 7050838 commit ba1aa03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@ Truefoundry AWS platform features
| <a name="output_platform_user_bucket_arn"></a> [platform\_user\_bucket\_arn](#output\_platform\_user\_bucket\_arn) | The bucket's arn |
| <a name="output_platform_user_bucket_name"></a> [platform\_user\_bucket\_name](#output\_platform\_user\_bucket\_name) | The bucket's ID/name |
| <a name="output_platform_user_ecr_url"></a> [platform\_user\_ecr\_url](#output\_platform\_user\_ecr\_url) | The ECR url to connect |
| <a name="output_platform_user_enabled"></a> [platform\_user\_enabled](#output\_platform\_user\_enabled) | The user is enabled |
| <a name="output_platform_user_secret_key"></a> [platform\_user\_secret\_key](#output\_platform\_user\_secret\_key) | The user secret key |
<!-- END_TF_DOCS -->
5 changes: 5 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ output "platform_iam_role_policy_arns" {
value = local.truefoundry_platform_policy_arns
}

output "platform_user_enabled" {
description = "The user is enabled"
value = var.platform_feature_enabled && var.platform_user_enabled
}

output "platform_user_access_key" {
description = "The user access key ID"
value = var.platform_feature_enabled && var.platform_user_enabled ? aws_iam_access_key.truefoundry_platform_user_keys[0].id : ""
Expand Down

0 comments on commit ba1aa03

Please sign in to comment.