-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for vpcConnector and vpcConnectorEgressSettings customization for functions #2525
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
Add support for vpcConnector and vpcConnectorEgressSettings customization for functions #2525
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
1eddf9c to
96b2a7d
Compare
|
@googlebot I signed it! |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
|
@pcboy thanks for the PR! I do think this is a worthwhile feature to investigate adding, but I don't think adding it to All SDK/API changes for Firebase have to go through an internal review process before they can be added, and I'm willing to represent this feature internally. I can't promise that we'll be able to dedicate much engineering time to it soon, so if you're amenable to creating a corresponding PR in the Cheers! |
96b2a7d to
abec69b
Compare
|
@mbleigh Agreed. It seems better to put it in runWith(). |
4d0b45c to
acded04
Compare
2b3e541 to
db2ebf9
Compare
mbleigh
left a comment
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.
Good news! The Firebase API review process is done and the API is approved. I have one more change to make it compatible with the decided API, if you can implement we can try to get this shipped!
db2ebf9 to
ea7bdf0
Compare
mbleigh
left a comment
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.
Thanks for working with me on this! We'll try to get it launched soon!
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.
Tried this out in conjunction with firebase/firebase-functions#752 and it worked great! Thanks!
|
Thanks so much for this contribution! We'll try to get it out tomorrow. Also I edited the description to no longer mention firebase.json so it's not confusing. (I got confused at first when reviewing) |
|
This is a great addition and will help adoption of Firebase within enterprise orgs! Thanks all! |
|
Hello.. |
|
You will need to make sure you are on version |
|
thanks for your reply.
I am using exactly these versions.
but when I do the deployment I verify that it is not configured in my cloud
function the vpcconector
Em seg, 24 de ago de 2020 19:01, Michael Bleigh <notifications@github.com>
escreveu:
… You will need to make sure you are on version v3.11.0 or later of
firebase-functions and version v8.9.0 or later of firebase-tools. That's
the most likely reason you're not seeing anything happen.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2525 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJLTWJLDKTK2IE73HJZVDZDSCLPM5ANCNFSM4PVLFT5Q>
.
|
|
@mbleigh I have the same problem as @leandroIA - the extra code (runWith) doesn't seem to do anything at all. The connector is not being attached to the function. result: and this is with a brand new 'firebase-tools' install, like so: firebase -V reports 8.19.0 I don't know how to check version of firebase-functions |
|
To check |
|
Thanks a lot for the quick reply, I was on 3.7.0 - now that I'm on 3.13.0 it works as expected. Too bad the firebase deploy doesn't throw an error when you're trying to do things it doesn't support, but it certainly was an easy 'fix' |


Description
Supports firebase-functions SDK feature in firebase/firebase-functions#752
It's an important feature for people who want to do a lot more with their firebase cloud functions. For instance connecting their cloud functions to a cloudSQL database.
Check issue #552 in firebase-functions to see that I'm not the only one in need for that feature. Sadly that ticket got closed.
Scenarios Tested
I tested creating a new cloud function with the vpcConnector and the vpcConnectorEgressSettings, it works. I also tried updating a function and works fine too. I also tested without mentioning the vpcConnectorEgressSettings setting and it worked too (will be set as ALL_TRAFFIC by default.)
Sample Commands
No actual change in CLI options. Simply configure the vpcConnector inside your firebase.json file.