3

I created EKS cluster on my AWS account, finished all necessary configurations, the environment is working as expected. Now I would like to generate terraform code to have a possibility to create another EKS by request from app. Is it possible to generate terraform code from existing EKS cluster, did anyone have experience of that?... thanks in advance!

1 Answers1

2

You can do it with terraform import.

This also works for EKS clusters.

EKS Clusters can be imported using the name, e.g.,

$ terraform import aws_eks_cluster.my_cluster my_cluster

A. Darwin
  • 632