sparse-intern-71089
02/22/2019, 9:13 AMbig-piano-35669
get
and that, by doing so, it will read the resource from the existing state and leave it be.
} else {
const stackRef = new pulumi.StackReference(...)
const blob = azure.storage.Blob.get(
"my-blob-b",
stackRef.getOutput("zipblob"),
);
}
That said, I had never considered using StackReference
to reference the current stack being deployed, and I don't know if the read will prevent the delete, so @microscopic-florist-22719 should definitely weigh in before I lead you down the wrong path 🙂No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by