@@ -19,13 +19,13 @@ provider "aws" {
1919}
2020
2121provider "kubernetes" {
22- host = module. eks . cluster_endpoint
22+ host = module. eks . cluster_endpoint
2323 cluster_ca_certificate = base64decode (module. eks . cluster_certificate_authority_data )
2424
2525 exec {
2626 api_version = " client.authentication.k8s.io/v1beta1"
2727 command = " aws"
28- args = [" eks" , " get-token" , " --cluster-name" , module . eks . cluster_name ]
28+ args = [" eks" , " get-token" , " --cluster-name" , module . eks . cluster_name ]
2929 }
3030}
3131
@@ -44,16 +44,16 @@ locals {
4444
4545 tags = {
4646 # repo_url = "http://gitlab.com/castai/IaC"
47- team = " live"
48- persist = " true"
47+ team = " live"
48+ persist = " true"
4949 terraform = " true"
5050 }
5151
5252 # Create a local value to store the first IP of the kubernetes endpoint -> to install Calico
5353 all_endpoint_ips = flatten ([
5454 for subset in data . kubernetes_endpoints_v1 . kubernetes_service . subset : [
5555 for addresses in subset : [
56- for ip in addresses : ip
56+ for ip in addresses : ip
5757 ]
5858 ]
5959 ])
@@ -62,13 +62,13 @@ locals {
6262
6363# Without that, pods on nodes with Calico don't have network access (internet, nor even node IPs)
6464resource "aws_security_group_rule" "calico-vxlan" {
65- security_group_id = module. eks . node_security_group_id
66- type = " ingress"
67- from_port = 4789
68- to_port = 4789
69- protocol = " udp"
70- cidr_blocks = [local . vpc_cidr ]
71- description = " VXLAN calico"
65+ security_group_id = module. eks . node_security_group_id
66+ type = " ingress"
67+ from_port = 4789
68+ to_port = 4789
69+ protocol = " udp"
70+ cidr_blocks = [local . vpc_cidr ]
71+ description = " VXLAN calico"
7272}
7373
7474# trivy:ignore:aws-ec2-no-excessive-port-access
@@ -171,13 +171,13 @@ module "eks" {
171171
172172 eks_managed_node_groups = {
173173 stock_ami = {
174- name = " stock-ami"
175- ami_family = " AmazonLinux2023"
176- instance_types = [" c5a.large" ]
174+ name = " stock-ami"
175+ ami_family = " AmazonLinux2023"
176+ instance_types = [" c5a.large" ]
177177 privateNetworking = true
178- min_size = 2
179- max_size = 4
180- desired_size = 2
178+ min_size = 2
179+ max_size = 4
180+ desired_size = 2
181181
182182 iam_role_additional_policies = {
183183 AmazonSSMManagedInstanceCore = " arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
0 commit comments