-
Notifications
You must be signed in to change notification settings - Fork 126
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
feat: Support provider.vpcEgress
configuration
#271
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6a792f3
Updates to allow VPC Connector configuration
fcr1193 db39f69
validation update
fcr1193 5971775
update
fcr1193 1909cf2
update
fcr1193 b82abd9
update
fcr1193 33bbf4d
variable update
fcr1193 9c4e18d
test added
fcr1193 b41aa13
logic changes to support vpcEgress on provider level
fcr1193 98e74a9
updates to override provider level setting
fcr1193 4282079
Test to cover provider level and setting override added
fcr1193 33bf794
variable addded
fcr1193 bc04e10
test removed
fcr1193 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we applying this only if
vpcEgress
is set directly on function? What is the purpose ofprovider
level setting then? It will never be effective as it will be always overriden by value set on function or not applied at allThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! sorry, I'm not following you here. What do you mean that the value will be overwritten?
I have the following configuration (https://i.imgur.com/7kENrcp.png) in my
serverless.yml
file. I thinkvpcEgress
is configured at the function level.I deployed using this fork and got the following result:
https://i.imgur.com/tb748wY.png
I wait your answer, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I mean here is that while we support
vpcEgress
setting onprovider
level, it will never take effect because the logic is applied only when the setting is applied directly on function. I would assume that if it's only set onprovider
level, then it should be applied to all functions in service, correct?In the provided example you set the value on function level and that case is covered well, but if you'd like to apply it across your service and set it on
provider.vpcEgress
, then it just does not work at all.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! i think i got it, i just applied the change to make it through the provider level.
do you think it's ok?
thanks!