Skip to content

Commit 1b49a5b

Browse files
committed
cleanup and tflint fixes
1 parent dc27e4b commit 1b49a5b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

terraform/aws/aws-eks-operator/main.tf

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
locals {
2-
name = basename(path.cwd)
2+
name = "example-${basename(path.cwd)}"
33

44
aws_tags = {
55
Name = local.name
66
}
77

88
// Modify these to use your own VPC
9-
vpc_cidr_block = module.vpc.vpc_cidr_block
109
vpc_id = module.vpc.vpc_id
1110
subnet_ids = module.vpc.private_subnets
1211

1312
# EKS cluster configuration
1413
cluster_version = "1.34" # TODO: omit this?
1514
node_instance_type = "t3.medium"
16-
node_capacity_type = "ON_DEMAND"
1715
desired_size = 2
1816
max_size = 2
1917
min_size = 1
@@ -22,7 +20,7 @@ locals {
2220
operator_name = "${local.name}-operator"
2321
operator_version = "1.92.4"
2422
tailscale_oauth_client_id = var.tailscale_oauth_client_id
25-
tailscale_oauth_client_secret = var.tailscale_oauth_client_secret # TODO: use https://tailscale.com/kb/1236/kubernetes-operator#installation-with-workload-identity-federation
23+
tailscale_oauth_client_secret = var.tailscale_oauth_client_secret
2624
}
2725

2826
// Remove this to use your own VPC.
@@ -51,8 +49,9 @@ module "eks" {
5149
}
5250
}
5351

54-
# Optional
55-
endpoint_public_access = true # TODO: remove?
52+
# Once the Tailscale operator is installed, `endpoint_public_access` can be disabled.
53+
# This is left enabled for the sake of easy adoption.
54+
endpoint_public_access = true
5655

5756
# Optional: Adds the current caller identity as an administrator via cluster access entry
5857
enable_cluster_creator_admin_permissions = true

terraform/aws/aws-eks-operator/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ output "cmd_kubeconfig_aws" {
2121
value = "aws eks update-kubeconfig --region ${data.aws_region.current.region} --name ${module.eks.cluster_name}"
2222
}
2323

24-
data "aws_region" "current" {} # TODO: move? or remove?
24+
data "aws_region" "current" {}

0 commit comments

Comments
 (0)