I am testing how the new Genesys Cloud Function integration works. I was following @John_Carnell 's video . However, when I tried to generate the .zip using sls package, it failed saying that I have invalid AWS credentials.
Is an AWS account needed to use this integration? In the video, John says that serverless is not required, just recommended. But serverless docs specify that credentials are required for packaging. The Resource Center article doesn't list an AWS Account as a requirement so...
I don't know much on the use of Serverless Framework but the sls command can run without checking/needing AWS credentials.
I just tried it with one of the samples I mentioned in the Welcome Genesys Cloud Functions! blog that was published recently. The samples contain the necessary serverless.yml file used by sls package command. In the example, Serverless Framework is installed as a dev dependency of the project (in package.json). I didn't install it "globally".
Hello! I've discovered that the Serverless version that appears in that blog entry is v3, which does not require AWS credentials to package. However, that version is no longer supported.
The new one (v4):
Requires license for big companies
Requires AWS credentials
I was able to create the zip file just by following the AWS Lambda documentation. However, testing locally is not as easy as testing with serverless (although it is not very hard either; just create a js script that imports the function and calls it with the 3 parameters).
Interestingly, I installed the SLS a few months ago and it was v3. I will pass that feedback on to the product manager and see if any other recommended frameworks exist. In the meantime, I will update the description on the YouTube video that provides more feedback.
Thank you for the notice. I hadn't paid attention to the version I was using.
I'll try to update the blog and samples next week with alternatives in the package.json scripts (using zip and inline js code).