kyma-project / serverless

Apache License 2.0
4 stars 19 forks source link

Function Templates to allow users to connect to BTP services via sap cloud SDK libraries #387

Open kwiatekus opened 1 year ago

kwiatekus commented 1 year ago

Description

Introduce function template(s) to help kyma users write functions which interact with BTP-injected services It would work best if a user could pick which service (detected based on injected secrets) and the secret would be automatically configured as a volume mount. Function template should include importing the SAP cloud SKD libraries together with code sample demonstrating the usage.

Reasons

Kyma has many examples, blueprints and blogs describing how to consume services via BTP-manager injected secrets using cloud sdks maintaned by SAP. However, we are missing a dedicated function templates giving the users the good starting point to develop functions in combination with SAP services.

Usage examples

Attachments https://blogs.sap.com/2023/02/06/power-of-serverless-with-sap-btp-kyma-runtime.-secrets-mounted-as-volumes./ https://blogs.sap.com/2022/07/12/the-new-way-to-consume-service-bindings-on-kyma-runtime/

ptesny commented 11 months ago

There is also this blogpost: https://blogs.sap.com/2023/07/28/sap-configurepricequote-cpq-apis-with-resilience-with-sap-btp-kyma-runtime/

which offers code snippets with the serverless and the cloud-sdk using the built-in resilience when calling BTP services and the resilience I implemented when calling the target LOB application. In this use case the target SAP LOB is SAP CPQ - Configure Price Quote