Customer asked me this today: Could I run pulumi c...
# general
c
Customer asked me this today: Could I run pulumi completely cut off from the pulumi service by using state on S3 and using pulumi login against that state? I wasn't 100% sure about this, I saw some GitHub issues and PRs that worked on S3 state (although I can't find any documentation on how to configure and log in to S3 state), but I also wasn't sure about the "not using the pulumi service" aspect of this question.
t
I think that's the idea, but the docs are lacking indeed: https://github.com/pulumi/docs/issues/1279
👍 1
c
geez, why am I so bad at searching GitHub?!
b
definitely can, we only use local state
c
maybe something for @big-piano-35669 to comment on then.
b
and just take care to commit the state file changes to a common git repo
c
@better-rainbow-14549 meaning you're not using the pulumi web UI at all? No need for a project and stack on pulumi?
b
my point being - if you put and retrieve the files to any other storage it will be fine with no pulumi account / access at all
yeah
i've been using pulumi for about a year at work and i only saw their online service for the first time last week for a personal project
c
okay, these guys like the pulumi approach, but are wary of the whole "startup" thing and want to avoid a dependency on a web service that they don't control
b
ours was more a certification reason but yeah
pulumi's excellent, the core product is open source and it isn't tied to their online service at all
👍 1
c
I think that's my point as well that I want to drive home with them, the service really adds value, but isn't a hard dependency
b
That's a good way of putting it. Note that you can always start with the service and migrate away from it later on (via `pulumi stack export`/`import`). We definitely believe the service adds value (it's just way easier, in our experience, in addition to the various team, policy, webhooks, etc features), but we certainly want you to be able to use Pulumi's SDK goodness independent of the service if you wish. We'll be doing a better job of documenting the options here in the weeks ahead.
c
@big-piano-35669 thanks, is there a quick tldr though on how to configure the S3 backend?
b
If you do
pulumi login <s3://my-bucket>
then Pulumi will use
my-bucket
, via your local AWS configuration (e.g.,
.aws/credentials
) to store the checkpoint state.
c
oh, okay, that simple? I'll try that. So as long as the CI server has some sort of access keys in the environment that'll work then? Cool.
@big-piano-35669 I just tested this, but I get this here