https://pulumi.com logo
#getting-started
Title
# getting-started
h

hallowed-soccer-59390

11/28/2023, 3:31 PM
is it possible to modify and existing eks cluster not created by pulumi?
d

dry-potato-52542

11/28/2023, 4:18 PM
import it into pulumi first then u should be able to set diff
pulumi aws providers are build on top of terraform using pulumi bridge
as long as tf provider supports import pulumi should support import as well
but don't quote me on that
but still the first step is to import and check the state. of the stack
But FYI you are making pulumi manage ur resources. Be careful of what u doing 🙂
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Existing EKS Cluster
const clusterName = "my_existing_cluster";

// Import it to Pulumi
const eksCluster = new aws.eks.Cluster(clusterName, {}, {
  import: clusterName,
});
h

hallowed-soccer-59390

11/28/2023, 5:26 PM
thank you