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

Act more like aws cli / conducive to CI #30

Open
aidansteele opened this issue May 26, 2019 · 2 comments
Open

Act more like aws cli / conducive to CI #30

aidansteele opened this issue May 26, 2019 · 2 comments

Comments

@aidansteele
Copy link
Contributor

aws cloudformation package and aws cloudformation deploy behave differently to stackit package and stackit execute.

At first I thought it would be more useful to create and display a changeset as part of stackit package, making it similar to terraform plan. This arguably is more useful in the typical case, but isn't as useful in the CI case.

Specifically, in a CI setup we might want to archive "artifacts" from a Build stage and use them in a later Deploy stage. Right now we are archiving stackit.packaged.yml. The problem is that this isn't replayable, a user can't re-run just the Deploy stage as they might expect.

We could ameliorate this with the following design:

  • stackit package acts identically to aws cloudformation package, albeit with sensible defaults -- it will emit a <template name>.packaged.yml file.
  • stackit plan is analogous to terraform plan
  • stackit apply is analogous to terraform apply
  • stackit up --stack-name <stack> --template <template name>.packaged.yml is a wrapper around plan && apply, i.e. it creates and executes a change set.
@aidansteele
Copy link
Contributor Author

aidansteele commented Jun 2, 2019

Actually, there's no reason up shouldn't be a wrapper around package, plan and apply.

@aidansteele
Copy link
Contributor Author

aidansteele commented Jun 18, 2019

As of eb43d0b

  • up is done. It now packages, plans and applies.
  • package behaves as described above.
  • plan and apply don't exist yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant