-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce completely separate chalice stages
This introduces a change to how stages work in chalice. Previously a "stage" in chalice corresponded to an API gateway stage. While this could theoretically work for lambda functions as well (via aliasing and function versions) it would not necessarily scale with other AWS resources. Now, chalice "stages" are entirely new sets of resources. For example, if I run: $ chalice deploy dev # Note 'dev' can be omitted, it's the default $ chalice deploy prod I will have two completely separate sets of API gateway rest APIs, Lambda functions, and IAM roles. To help track this, a ".chalice/deployed.json" is written on deploys that contains the deployed values per-stage. There's still some additional work remaining, primarily against upgrading from old versions to this new version. We should be warning or erroring out in that scenario, but that will be addressed as a separate commit. Additionally, the "chalice url/logs" command can be updated to use the ".chalice/deployed.json" file as well, but that will be added as a separate commit.
- Loading branch information
Showing
7 changed files
with
297 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.