Skip to content

Commit

Permalink
fix: fargate logging iam policy not needed for non fargate clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavkumarsph committed Jul 7, 2023
1 parent 4a861e5 commit 9e8bce3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fargate_profile.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ resource "kubernetes_manifest" "fargate_node_security_group_policy" {
}

resource "aws_iam_policy" "fargate_logging" {
count = var.fargate_cluster ? 1 : 0

name = "fargate_logging_cloudwatch_default"
path = "/"
description = "AWS recommended cloudwatch perms policy"
Expand Down

0 comments on commit 9e8bce3

Please sign in to comment.