tall-monitor-77779
10/16/2018, 2:33 PMwhite-balloon-205
tall-monitor-77779
10/16/2018, 5:01 PMUse '.get' methods and do a deployment to read the resource into the checkpoint file.
?cold-coat-35200
10/16/2018, 6:35 PMwhite-balloon-205
const cluster = aws.eks.Cluster.get("mycluster", "eksCluster-4606f9f");
That gets an initialized instance of a Cluster and stores it in the checkpoint file. If you pulumi stack export > stack.json
you'll see:
{
"urn": "urn:pulumi:gettest-dev::gettest::aws:eks/cluster:Cluster::mycluster",
"custom": true,
"id": "eksCluster-4606f9f",
"type": "aws:eks/cluster:Cluster",
"outputs": {
...
},
"parent": "urn:pulumi:gettest-dev::gettest::pulumi:pulumi:Stack::gettest-gettest-dev",
"external": true,
"dependencies": null,
"initErrors": null,
"provider": "urn:pulumi:gettest-dev::gettest::pulumi:providers:aws::default::3c21fdf5-0031-4f19-9576-838e47b613fb"
}
Note the external: true
- which indicates this is not managed by Pulumi.tall-monitor-77779
10/16/2018, 7:11 PM