Add a default to Cloud Functions runtime #1747
Merged
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.
Fixes an issue where the Cloud Functions API now requires a runtime to be explicitly defined.
All existing provider versions are affected;
0.X
,1.X
series providers have no workaround. Creation of new Cloud Functions is immediately broken.2.X
series providers up to2.6.0
can work around the change by specifying a runtime.This is a mostly-safe transition, to the point that we can be comfortable including this in a bugfix release.
Prior to today, the API has defaulted to
nodejs6
as the runtime for Cloud Functions. That has been exposed in theruntime
variable in the API response, so all existing functions will have it set in state. They will see no diff. Users who explicitly defined aruntime
are unaffected.There is one exception- if users have defined a function in Terraform without specifying
runtime
and then modified the function out of band (or defined aruntime
then removed it from config, due to howComputed
works) they will see a diff. That said, it will be caught at plan time and we will highlight it in the changelog so anyone running Terraform in CI will be warned.[all]
[terraform]
[terraform-beta]
[ansible]
[inspec]