Download the PHP package imdigital/magento-serverless-gcp without Composer
On this page you can find all versions of the php package imdigital/magento-serverless-gcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imdigital/magento-serverless-gcp
More information about imdigital/magento-serverless-gcp
Files in imdigital/magento-serverless-gcp
Package magento-serverless-gcp
Short Description Add Google Cloud functions to the serverless framework
License OSL-3.0 AFL-3.0
Informations about the package magento-serverless-gcp
Google Cloud Functions for the Magento 2 Serverless Framework
This Magento module will extend the Magento 2 serverless framework module allowing us to use Google Cloud Functions.
Installation
Requirements
- Magento >= 2.4.5-p1
- PHP >= 8.1
- Grpc for PHP
Installing the module and enabling it
To install this module we must run the composer require command requesting its installation:
Then, enable it by modifying the app/etc/config.php or running the CLI command:
Serverless function setup
When adding a new serverless function into the serverless_functions database table, we must use gcp as the cloud provider code on the cloud_provider field.
The cloud config field expects a (encrypted) JSON on this format:
The region_id is the region where the cloud function is hosted. The serviceaccount_key field is a service account that we must create, and then generate a JSON service account key with access to execute the functions.
These are the permissions you must add to your service account in order to be able to execute cloud functions:
Service account permissions
All versions of magento-serverless-gcp with dependencies
google/cloud-functions Version ^1.0
grpc/grpc Version ^1.38
imdigital/magento-serverless Version ^1.0.3