Skip to content

Commit

Permalink
chore: Remove aws_eks_cluster resource block
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyovriakh committed Feb 7, 2024
1 parent 35a8cea commit a51ff0b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions modules/services/eks/main.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
# import {
# for_each = local.filtered_clusters
# to = aws_eks_cluster.this[each.key]
# id = each.value.id
# }

// TODO: Open public access manually
# resource "aws_eks_cluster" "this" {
# for_each = local.filtered_clusters // TODO: Is the import order preserved?
# name = each.value.name
# role_arn = each.value.role_arn
#
# vpc_config {
# endpoint_private_access = false
# endpoint_public_access = true
# public_access_cidrs = concat(local.sysdig_cidrs, [for cidr in each.value.vpc_config.0.public_access_cidrs : cidr if cidr != "0.0.0.0/0"])
# security_group_ids = each.value.vpc_config.0.security_group_ids
# subnet_ids = each.value.vpc_config.0.subnet_ids
# }
#
# tags = each.value.tags
# }

// TODO: Check if it already exists (in case if the customer runs this script twice)
resource "awscc_eks_access_entry" "viewer" {
for_each = local.clusters
Expand Down

0 comments on commit a51ff0b

Please sign in to comment.