Skip to content

Commit

Permalink
Removing unused tf config
Browse files Browse the repository at this point in the history
  • Loading branch information
caiocsgomes committed Jun 12, 2024
1 parent 806bff4 commit 5d3f5af
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions terraform/environments/prod/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -195,75 +195,3 @@ resource "aws_security_group" "remote_access" {
tags = merge(local.tags, { Name = "${local.name}-remote" })
}

resource "aws_iam_policy" "node_additional" {
name = "${local.name}-additional"
description = "Example usage of node additional policy"

policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = [
"ec2:Describe*",
]
Effect = "Allow"
Resource = "*"
},
]
})

tags = local.tags
}

data "aws_ami" "eks_default" {
most_recent = true
owners = ["amazon"]

filter {
name = "name"
values = ["amazon-eks-node-${local.cluster_version}-v*"]
}
}

data "aws_ami" "eks_default_arm" {
most_recent = true
owners = ["amazon"]

filter {
name = "name"
values = ["amazon-eks-arm64-node-${local.cluster_version}-v*"]
}
}

data "aws_ami" "eks_default_bottlerocket" {
most_recent = true
owners = ["amazon"]

filter {
name = "name"
values = ["bottlerocket-aws-k8s-${local.cluster_version}-x86_64-*"]
}
}

resource "aws_iam_role" "this" {
for_each = toset(["single", "multiple"])

name = "ex-${each.key}"

# Just using for this example
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = "sts:AssumeRole"
Effect = "Allow"
Sid = "Example"
Principal = {
Service = "ec2.amazonaws.com"
}
},
]
})

tags = local.tags
}

0 comments on commit 5d3f5af

Please sign in to comment.