Skip to content

Commit

Permalink
terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro committed May 13, 2024
1 parent 6d96ed5 commit eceb0e7
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,44 +78,44 @@ data "aws_iam_policy_document" "truefoundry_platform_feature_cloud_integration_p
count = var.platform_feature_enabled ? var.feature_cloud_integration_enabled ? 1 : 0 : 0
statement {
effect = "Allow"
actions =[
"eks:ListNodegroups",
"eks:DescribeFargateProfile",
"eks:ListTagsForResource",
"eks:DescribeInsight",
"eks:ListAddons",
"eks:DescribeAddon",
"eks:DescribePodIdentityAssociation",
"eks:ListInsights",
"eks:ListPodIdentityAssociations",
"eks:ListFargateProfiles",
"eks:DescribeNodegroup",
"eks:ListUpdates",
"eks:DescribeUpdate",
"eks:AccessKubernetesApi",
"eks:DescribeCluster",
]
actions = [
"eks:ListNodegroups",
"eks:DescribeFargateProfile",
"eks:ListTagsForResource",
"eks:DescribeInsight",
"eks:ListAddons",
"eks:DescribeAddon",
"eks:DescribePodIdentityAssociation",
"eks:ListInsights",
"eks:ListPodIdentityAssociations",
"eks:ListFargateProfiles",
"eks:DescribeNodegroup",
"eks:ListUpdates",
"eks:DescribeUpdate",
"eks:AccessKubernetesApi",
"eks:DescribeCluster",
]

resources = [
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:fargateprofile/${var.cluster_name}/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:addon/${var.cluster_name}/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:nodegroup/${var.cluster_name}/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:podidentityassociation/${var.cluster_name}/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:identityproviderconfig/${var.cluster_name}/*/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:cluster/${var.cluster_name}"
]
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:fargateprofile/${var.cluster_name}/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:addon/${var.cluster_name}/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:nodegroup/${var.cluster_name}/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:podidentityassociation/${var.cluster_name}/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:identityproviderconfig/${var.cluster_name}/*/*/*",
"arn:aws:eks:${var.aws_region}:${var.aws_account_id}:cluster/${var.cluster_name}"
]
}
statement {
effect = "Allow"
actions = [
"eks:DescribeAddonConfiguration",
"eks:ListClusters",
"eks:DescribeAddonVersions",
"ec2:DescribeRegions"
]
"eks:DescribeAddonConfiguration",
"eks:ListClusters",
"eks:DescribeAddonVersions",
"ec2:DescribeRegions"
]

resources = [
"*"
"*"
]
}
}
Expand Down

0 comments on commit eceb0e7

Please sign in to comment.