square-crayon-17656
09/28/2018, 10:47 PMcreamy-potato-29402
09/29/2018, 1:42 AMbig-piano-35669
pulumi stack export
. It's just a JSON file. Not quite the same as Terraform state files, but hopefully easier to grok and parse since it's just JSON. If you ever want to edit it, you can always import the resulting edits using pulumi stack import
.square-crayon-17656
09/29/2018, 4:07 PMbig-piano-35669
let s = k8s.Secret.get("my-existing-secret")
and then use it as an object in your program just like as if you'd used Pulumi to create it, except that Pulumi won't try to manage its lifecycle or anything, it's just a readonly snapshot of its state. Does that sound like what you're after here?square-crayon-17656
09/30/2018, 12:37 AMcreamy-potato-29402
10/01/2018, 5:20 PM