Skip to content

Commit

Permalink
refa: removed unused IAM policy
Browse files Browse the repository at this point in the history
  • Loading branch information
kfc-manager committed Apr 3, 2024
1 parent 199d3c7 commit fc28fe0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,6 @@ resource "aws_iam_role" "master" {
tags = var.tags
}

data "aws_iam_policy_document" "console" {
statement {
effect = "Allow"

actions = ["eks:AccessKubernetesApi"]

resources = ["*"]
}
}

resource "aws_iam_policy" "console" {
name = "${var.identifier}-WebConsoleEKSMonitoring"
policy = data.aws_iam_policy_document.console.json

tags = var.tags
}

resource "aws_iam_role_policy_attachment" "console" {
policy_arn = aws_iam_policy.console.arn
role = aws_iam_role.master.name
}

resource "aws_iam_role_policy_attachment" "cluster" {
policy_arn = "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"
role = aws_iam_role.master.name
Expand Down

0 comments on commit fc28fe0

Please sign in to comment.