The meta-nxp-greengrass layer provides the recipes along with meta-java and meta-aws to create an image with Greengrass support on the S32G devices.
mkdir <yocto_dir>
cd <yocto_dir>
repo init -u <this repo>
repo sync
Configure your machine and add the extra layers.
source nxp-setup-alb.sh -m s32g274aevb -b build_greengrass -e "meta-aws meta-java meta-nxp-greengrass meta-tensorflow"
The layer provides an extra image with Greengrass support.
bitbake fsl-image-auto-greengrass