Skip to content

Commit

Permalink
Merge pull request #9 from truefoundry/cloud-integration-fix
Browse files Browse the repository at this point in the history
added cloud integration for platform user
  • Loading branch information
dunefro authored Aug 16, 2024
2 parents 70d864e + b3524a8 commit 49f0cc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Truefoundry AWS platform features
| [aws_iam_role_policy_attachment.truefoundry_platform_s3_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_role_policy_attachment) | resource |
| [aws_iam_role_policy_attachment.truefoundry_platform_secrets_manager_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_role_policy_attachment) | resource |
| [aws_iam_user.truefoundry_platform_user](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_user) | resource |
| [aws_iam_user_policy_attachment.truefoundry_platform_user_cluster_integration_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_user_policy_attachment) | resource |
| [aws_iam_user_policy_attachment.truefoundry_platform_user_ecr_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_user_policy_attachment) | resource |
| [aws_iam_user_policy_attachment.truefoundry_platform_user_parameter_store_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_user_policy_attachment) | resource |
| [aws_iam_user_policy_attachment.truefoundry_platform_user_s3_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/5.14.0/docs/resources/iam_user_policy_attachment) | resource |
Expand Down
7 changes: 6 additions & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ resource "aws_iam_user" "truefoundry_platform_user" {
tags = local.tags
}
resource "aws_iam_access_key" "truefoundry_platform_user_keys" {
count = var.platform_feature_enabled && var.platform_user_enabled ? 1 : 0

Expand Down Expand Up @@ -279,3 +278,9 @@ resource "aws_iam_user_policy_attachment" "truefoundry_platform_user_ecr_policy_
user = aws_iam_user.truefoundry_platform_user[0].name
policy_arn = aws_iam_policy.truefoundry_platform_feature_ecr_policy[0].arn
}

resource "aws_iam_user_policy_attachment" "truefoundry_platform_user_cluster_integration_policy_attachment" {
count = var.platform_feature_enabled ? (var.feature_cluster_integration_enabled && var.platform_user_enabled) ? 1 : 0 : 0
user = aws_iam_user.truefoundry_platform_user[0].name
policy_arn = aws_iam_policy.truefoundry_platform_feature_cluster_integration_policy[0].arn
}

0 comments on commit 49f0cc8

Please sign in to comment.