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

Creating stacks if they don't exist #90

Closed
simenandre opened this issue Feb 26, 2021 · 1 comment · Fixed by #118
Closed

Creating stacks if they don't exist #90

simenandre opened this issue Feb 26, 2021 · 1 comment · Fixed by #118
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features resolution/fixed This issue was fixed

Comments

@simenandre
Copy link
Contributor

simenandre commented Feb 26, 2021

Pulumi Automation API supports creating stacks if they don't exist. I think it could be useful to make this possible in the Github Action too.

With it, users can build a workflow that does not require developers/contributors of a repository to have Pulumi installed for all operations. For example, if you want to spin up a stack (environment), for testing.

Fixes: #9

@simenandre simenandre added the kind/enhancement Improvements or new features label Feb 26, 2021
@simenandre simenandre changed the title Creating stacks if they don't exists Creating stacks if they don't exist Feb 26, 2021
@leezen leezen added the impact/usability Something that impacts users' ability to use the product easily and intuitively label Mar 2, 2021
@simenandre
Copy link
Contributor Author

I suggest that we add a new input (e.g. ensure), and when that is available, we use createOrSelectStack instead of selectStack here:

actions/src/main.ts

Lines 31 to 34 in c792c1e

const stack = await LocalWorkspace.selectStack({
stackName: config.stackName,
workDir: workDir,
});

simenandre added a commit that referenced this issue Mar 16, 2021
Creates stacks if they don't exists when `upsert` is set to `true`.

fixes #90
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants