I want to able to set Cloud Run Execution Environment in Cloud Functions
https://docs.cloud.google.com/run/docs/configuring/execution-environments
Since Cloud Functions v2 run on Cloud Run and Cloud Run supports two different execution environment, I want to be able to set them, e.g.
const { onRequest } = require("firebase-functions/v2/https");
// Set it for a specific function
exports.myFunction = onRequest({
executionEnvironment: 'gen1', // This tells Cloud Run to use its Gen1 environment
memory: '256MiB',
}, (req, res) => {
res.send("Running on Cloud Run Gen1 environment!");
});
1
vote