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

billions-mechanic-26704

05/24/2019, 12:59 PM
What about infrastructure state in pulumi, Can I store it and manage it ?
g

gentle-diamond-70147

05/24/2019, 1:03 PM
Can you elaborate by what you mean by infrastructure state?
Pulumi is used to manage infrastructure (and application) resources if that's what you mean.
Conceptually Pulumi is similar to Terraform. You define what you want your infrastructure, containers, kubernetes, etc. resources to be and Pulumi knows how to create and manage them.
c

colossal-room-15708

05/24/2019, 1:10 PM
You probably mean your state file like in terraform the
tfstate
? https://pulumi.io/reference/state.html#to-the-filesystem-backend
b

billions-mechanic-26704

05/24/2019, 1:15 PM
Yes, that is to I refer, and also, ... Can I store the state in some remote storage similar to terraform? I mean can I store the state in azure storage for example ... instead to pulumi app web site? https://pulumi.io/reference/state.html If I want to do this, it have some cost for me?
g

gentle-diamond-70147

05/24/2019, 1:20 PM
By default it will use the Pulumi service at app.pulumi.com, which is free for individuals.
c

colossal-room-15708

05/24/2019, 1:22 PM
@billions-mechanic-26704 why would you want to host the file yourself?
b

billions-mechanic-26704

05/24/2019, 2:02 PM
@gentle-diamond-70147 @colossal-room-15708 The company in which I work use Azure cloud platform, and the idea is continue using it.
g

gentle-diamond-70147

05/24/2019, 2:05 PM
We do support Azure Blob storage (and others). However, they do not support state locking so you'd need to account for that yourself.
The Pulumi Service provides state storage, state lock, role-based access controls, webhooks, and many other team-focused features, so I highly recommend considering it.
❤️ 1
Using the Pulumi Service does not change which infrastructure provider you use - so you would still use Azure cloud for your infrastructure and application resources.
c

colossal-room-15708

05/24/2019, 2:11 PM
@billions-mechanic-26704 yeah, you still use Azure, like Cameron says, but managing the state file yourself means you buy yourself a lot of problems you don't need to have
b

billions-mechanic-26704

05/24/2019, 2:42 PM
@colossal-room-15708 can you explain me when you says
you buy yourself a lot of problems
I mean, If I store the state in some cloud service like azure storage ... An also I have another question If I decide use app.pulumi.com , it means that the company should to pay for use it?. It wouldn't personal use ....
c

colossal-room-15708

05/24/2019, 2:55 PM
It means that you now have to figure out how to deploy the storage account (outside of pulumi), control access to the storage account, secure the state file, back it up and all the other things that come with this.
@gentle-diamond-70147 what do you mean "not support state locking"? You mean the pulumi provider doesn't lock the file? Because Azure Blobs certainly support locking. https://docs.microsoft.com/en-us/rest/api/storageservices/lease-blob
g

gentle-diamond-70147

05/24/2019, 3:02 PM
@colossal-room-15708 per the original PR, I think locking is not currently implemented. https://github.com/pulumi/pulumi/pull/2455
c

colossal-room-15708

05/24/2019, 3:03 PM
okay, the pulumi provider doesn't. I understand. I might take a look at that.
g

gentle-diamond-70147

05/24/2019, 3:04 PM
@billions-mechanic-26704 we have a community edition that's free for individuals and team editions for companies that want to use Pulumi across multiple team members. more details are at https://www.pulumi.com/pricing/
s

stocky-spoon-28903

05/24/2019, 3:25 PM
@billions-mechanic-26704 Another thing of note is that there is a task for Azure DevOps which will manage running Pulumi without additional shell scripting and such.
👀 1
Oh, @gentle-diamond-70147 already said that. Doh!