From 06c1af33c8eab0fb7b004c6fe43879717049d009 Mon Sep 17 00:00:00 2001 From: Vedant Pareek Date: Fri, 16 Aug 2024 02:34:00 +0530 Subject: [PATCH 1/4] added cloud integration for platform user --- iam.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index d4b8ada..72d6eb2 100644 --- a/iam.tf +++ b/iam.tf @@ -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 @@ -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_cloud_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 +} \ No newline at end of file From ac0aeb82e1e0879b3cec55da2dfa79520dd86a33 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 15 Aug 2024 21:04:53 +0000 Subject: [PATCH 2/4] terraform-docs: automated action --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7acc589..dd1eaac 100644 --- a/README.md +++ b/README.md @@ -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_cloud_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 | From ba720b0226f534d11b0e2fa488acc88a9e6f5399 Mon Sep 17 00:00:00 2001 From: Vedant Pareek Date: Fri, 16 Aug 2024 11:22:53 +0530 Subject: [PATCH 3/4] cloud to cluster --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index 72d6eb2..7cda435 100644 --- a/iam.tf +++ b/iam.tf @@ -279,7 +279,7 @@ resource "aws_iam_user_policy_attachment" "truefoundry_platform_user_ecr_policy_ policy_arn = aws_iam_policy.truefoundry_platform_feature_ecr_policy[0].arn } -resource "aws_iam_user_policy_attachment" "truefoundry_platform_user_cloud_integration_policy_attachment" { +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 From b3524a81e1523122938d9f4c53ee279296de9758 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 16 Aug 2024 05:54:12 +0000 Subject: [PATCH 4/4] terraform-docs: automated action --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd1eaac..2f48086 100644 --- a/README.md +++ b/README.md @@ -38,7 +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_cloud_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_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 |