Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a pseudo-org for StackReference and GetOrganization API on filestate #11390

Closed
AaronFriel opened this issue Nov 17, 2022 · 3 comments
Closed
Labels
area/backends State storage (filestate/httpstate/etc.) kind/enhancement Improvements or new features resolution/fixed This issue was fixed

Comments

@AaronFriel
Copy link
Member

We have a number of features that now depend on detecting an organization and rendering it into a string. Among these, the get organization API in the SDKs and the StackReference resource.

The blocker here is deciding on how to handle the org or user name portion of the $org/$project/$stack string.

Resolving this for filestate backend will enable more integration tests to run locally, a significant win for test velocity, and remove potential panics and special casing logic in user programs.

Pulumi YAML in particular needs a pseudo-org to ensure the "organization" API does not panic, as we lack conditionals or the ability to branch on an optional value.

@Frassle
Copy link
Member

Frassle commented Nov 17, 2022

I've actually been thinking about maybe just support orgs and projects in filestate. They would both just be folders really, but by default if you had a backend set to "s3://my_bucket" we'd save stacks to full path like "s3://my_bucket/fraser/the_project/the_stack/state.json"

By default the org would just be the username, but you could use pulumi org set-default to change it to anything else.

@Frassle Frassle added area/backends State storage (filestate/httpstate/etc.) kind/enhancement Improvements or new features labels Nov 17, 2022
@courtland
Copy link

Now that self-hosted backends (e.g. S3) are project aware (3.61.0), are there any plans to include org as well?

@justinvp justinvp added the resolution/fixed This issue was fixed label Apr 10, 2023
@justinvp
Copy link
Member

We're not planning to add support for orgs in self-managed backends. New and upgraded self-managed backends with v3.61.0 and later all have a virtual organization named "organization" which allows for a consistent organization/project/stack syntax for StackReferences across backends, which is what this issue is tracking and can now be closed.

Fixed by #12437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backends State storage (filestate/httpstate/etc.) kind/enhancement Improvements or new features resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

4 participants