Repository navigation
AWS API Gateway: Fix API Gateway naming convention - #8339
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8339 +/- ##
=======================================
Coverage 88.01% 88.01%
=======================================
Files 249 249
Lines 9306 9306
=======================================
Hits 8191 8191
Misses 1115 1115
Continue to review full report at Codecov.
|
medikoo
left a comment
There was a problem hiding this comment.
Thanks @fabsrc for giving that a spin!
Sorry for not having that clear in origin issue, but we cannot introduce breaking changes just like that. All breaking changes are first introduced as deprecation, and then when new major is about to be released we issue a PR's that make changes actually breaking.
I've updated the main description of #2918 with implementation proposal. Please see notes over there, on how it should be approached.
Thank you!
Codecov Report
@@ Coverage Diff @@
## master #8339 +/- ##
==========================================
+ Coverage 88.02% 88.05% +0.02%
==========================================
Files 249 249
Lines 9278 9290 +12
==========================================
+ Hits 8167 8180 +13
+ Misses 1111 1110 -1
Continue to review full report at Codecov.
|
|
Hey @medikoo. Thanks for the detailed description how to implement this. Makes a lot of sense to do it that way. Could you please have another look? |
The naming of API Gateway will be changed from `${stage}-${service}` to `${service}-${stage}` in the next major version.
This commit adds a deprecation notice and an option to already adapt to this this convetion.
Codecov Report
@@ Coverage Diff @@
## master #8339 +/- ##
==========================================
+ Coverage 88.00% 88.05% +0.04%
==========================================
Files 249 249
Lines 9264 9290 +26
==========================================
+ Hits 8153 8180 +27
+ Misses 1111 1110 -1
Continue to review full report at Codecov.
|
|
Will there be a way to keep the old naming convention in future releases? |
Thanks for asking. Currently we want to drop support for old naming intermittently with new version, still we're open for feedback on that. Do you find it problematic if v3 will not support old naming? |
We used serverless to setup some Cognito user pools and lambda triggers that occasionally need to be updated. Just wondering how we will migrate to the new naming convention without serverless deleting the user pools. |
I think by explicitly setting the name of the API Gateway in the provider settings ( provider:
name: aws
apiName: ${opt:stage, 'dev'}-${self:service.name} |
Perfect, we will give that a shot. Thanks! |
|
@fabsrc that's a great hint. Also using |
The naming of API Gateway will be changed from
${stage}-${service}to${service}-${stage}in the next major version.This commit adds a deprecation notice and an option to already adapt to this this convetion.
Adresses: #2918