I am having 2 different terraform modules for installing 2 different component, 1 for building eks cluster , another for installing application . I have setup eks cluster successfully . However on installing application I am getting the error.
│ Error: Provider configuration not present
│
│ To work with module.aws_cloud_infra.module.vpc.aws_route.private_nat_gateway[0] (orphan) its original provider configuration at
│ module.aws_cloud_infra.provider["registry.terraform.io/hashicorp/aws"] is required, but it has been removed. This occurs when a provider configuration is removed while objects
│ created by that provider still exist in the state. Re-add the provider configuration to destroy module.aws_cloud_infra.module.vpc.aws_route.private_nat_gateway[0] (orphan), after
│ which you can remove the provider configuration again.
╵
Any idea , how to reference previoustly created cluster.