Skip to content

Infracost reports that aws/eks-private-cluster would costs whopping $438/m for just control plane due to old 1.25 k8s version #3

@telecomprofi

Description

@telecomprofi
/aws/eks-private-cluster [main] $ infracost breakdown --path=.
INFO Autodetected 1 Terraform project across 1 root module
INFO Found Terraform project main at directory .

Project: main

 Name                                                  Monthly Qty  Unit   Monthly Cost

 aws_eks_cluster.k8squickstart-eks
 └─ EKS cluster (extended support)                             730  hours       $438.00

 aws_eks_node_group.worker-node-group
 ├─ Instance usage (Linux/UNIX, on-demand, t3.xlarge)          730  hours       $121.47
 └─ Storage (general purpose SSD, gp2)                          20  GB            $2.00

 OVERALL TOTAL                                                                 $561.47

*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.

──────────────────────────────────
13 cloud resources were detected:
∙ 2 were estimated
∙ 11 were free

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Project                                            ┃ Baseline cost ┃ Usage cost* ┃ Total cost ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━┫
┃ main                                               ┃          $561 ┃           - ┃       $561 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━┛

comparing to the ./eks/ cluster that uses more recent 1.31

/aws/eks [main] $ infracost breakdown --path=.
INFO Autodetected 1 Terraform project across 1 root module
INFO Found Terraform project main at directory .

Project: main

 Name                                            Monthly Qty  Unit   Monthly Cost

 aws_eks_cluster.k8squickstart-eks
 └─ EKS cluster                                          730  hours        $73.00

 aws_eks_node_group.worker-node-group
 ├─ Instance usage (Linux/UNIX, spot, t3.small)        2,190  hours        $17.52
 └─ Storage (general purpose SSD, gp2)                    60  GB            $6.00

 OVERALL TOTAL                                                            $96.52

*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.

──────────────────────────────────
13 cloud resources were detected:
∙ 2 were estimated
∙ 11 were free

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Project                                            ┃ Baseline cost ┃ Usage cost* ┃ Total cost ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━┫
┃ main                                               ┃           $97 ┃           - ┃        $97 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━┛

so that stack might benefit from adding k8s version variable or just hardcoding newer 1.31 one

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions