https://pulumi.com logo
#general
Title
# general
m

mammoth-elephant-55302

02/13/2020, 4:29 AM
Is it possible to prevent (accidental) uncommitted deploy ? Something in Pulumi teams or crossgaurd would be okay too. I see on the pulumi site that pulumi keeps track of when you run
pulumi up
on uncommitted code
g

gentle-diamond-70147

02/13/2020, 4:34 AM
Hmm, that's an interesting idea. There's nothing built in, but I think a custom policy check could do it.
c

colossal-beach-47527

02/13/2020, 9:20 PM
@mammoth-elephant-55302 like Cameron said, there isn’t anything built-in that can do that now. But the idea has come up before. Can you elaborate on what you mean by “uncommitted deploy”? Would it be sufficient to just see if the
git
worktree is dirty or not? (i.e. any files under source control were modified, or new files locally but not in the repo.)
m

mammoth-elephant-55302

02/15/2020, 2:33 AM
Yes I think that would be helpful
2 Views