sparse-intern-71089
08/25/2021, 1:01 PMbrash-quill-35776
08/25/2021, 1:03 PMthousands-planet-78612
08/25/2021, 1:11 PMursrole := []string{"urn:pulumi:stack1::project1::aws:eks/cluster:Cluster::eks-cluster-1"}
// destroy the stack
//we'll write all of the logs to stdout so we can watch requests get processed
_, err = s.Destroy(ctx, optdestroy.Target(ursrole))
if err != nil {
fmt.Println(err.Error())
}
I am getting following error , is this right method to delete resource manually.?
failed to destroy stack: exit status 1
code: 1
stdout:
stderr: Error: unknown flag: --target urn:pulumi:stack1::project1::aws:eks/cluster:Cluster::eks-cluster-1
Usage:
thousands-planet-78612
08/25/2021, 1:14 PMursrole := []string{"urn:pulumi:stack1::project1::aws:eks/cluster:Cluster::eks-cluster-1"}
brash-quill-35776
08/25/2021, 1:15 PMthousands-planet-78612
08/25/2021, 1:51 PM// destroy the stack
//we'll write all of the logs to stdout so we can watch requests get processed
_, err = s.Destroy(ctx, optdestroy.ProgressStreams(os.Stdout))
if err != nil {
fmt.Println(err.Error())
}
brash-quill-35776
08/25/2021, 1:52 PMpulumi up
should be all goodthousands-planet-78612
08/25/2021, 1:59 PMbrash-quill-35776
08/25/2021, 1:59 PMbrash-quill-35776
08/25/2021, 2:00 PMthousands-planet-78612
08/25/2021, 2:00 PMwhich from your code
brash-quill-35776
08/25/2021, 2:01 PMbrash-quill-35776
08/25/2021, 2:02 PMpulumi up
thousands-planet-78612
08/25/2021, 2:13 PM<https://github.com/pulumi/examples/blob/master/aws-go-eks/main.go>
to create multiple eks cluster using rest api which mean the same code can be used to create multile cluster in single stack, what i am not understand what code need to be remove to destroy specific eks clsuter. How pulumi will understand which specific cluster resource need deleting if i remove form a specific section of my code. Also the values for the resources are dynamically provided during cluster creation.brash-quill-35776
08/25/2021, 2:14 PMdry-autumn-28966
10/01/2021, 1:29 PMunknown flag: --target
error? I am getting the same when using the Go automation API but the URN is definitely valid.dry-autumn-28966
10/01/2021, 2:38 PM