How-to guides
The user can enter the required information for Cloud Functions through the Samsung Cloud Platform Console, select detailed options, and create the service.
Cloud Functions Create
Click the All Services > Compute > Cloud Functions menu. Navigate to the Service Home page of Cloud Functions.
Click the Create Cloud Functions button on the Service Home page. It navigates to the Create Cloud Functions page.
Create Cloud Functions page, enter the information required to create the service.
Category RequiredDetailed description Funtion name Required Enter the Funtion name to create - Start with a lowercase English letter and use lowercase English letters, numbers, and special characters (
-) to input within 3 ~ 64 characters
Runtime Required Select Runtime creation method - Create new: Create a new Runtime
- Start with Blueprint: Create using the Runtime source code provided by the service
Runtime & Vesion Required Select Runtime and Version - Create New을 선택한 경우
- Runtime & Version 목록은 Components > Runtime 참고
- For Java runtime, UI code editing is not supported, but you can run by fetching a Jar file from Object Storage
- Start with Blueprint를 선택한 경우
- You can view source code examples by clicking the View Source Code button for the selected Runtime & Version
- Refer to the Blueprint Detailed Guide for more details on Blueprint settings
Table. Cloud Functions Service Information Input Items- Start with a lowercase English letter and use lowercase English letters, numbers, and special characters (
Summary Check the detailed information and estimated billing amount generated in the panel, and click the Complete button.
- When creation is complete, check the created resource on the Cloud Functions list page.
Cloud Functions Check Detailed Information
Cloud Functions Details page consists of Detail Information, Monitoring, Log, Code, Configuration, Trigger, Tag, Job History tabs.
To view detailed information about the Cloud Functions service, follow these steps.
- All Services > Compute > Cloud Functions Click the menu. Go to the Service Home page of Cloud Functions.
- Click the Function menu on the Service Home page. Move to the Function List page.
- Click the resource to view detailed information on the Function list page. Go to the Function detail page.
- Function Details The page displays status information and additional feature information, and consists of the Details, Monitoring, Log, Code, Configuration, Trigger, Tag, Task History tabs.
Category Detailed description Cloud Functions status Cloud Functions status information - Ready: green icon, state where normal function calls are possible
- Not Ready: gray icon, state where normal function calls are not possible
- Deploying: yellow icon, state where function is being created or changed, triggered by the following actions
- function creation and modification
- modify code with editor in the Code tab
- inspect jar file in the Code tab
- add and modify in the Trigger tab
- modify in the Configuration tab
- Running: blue icon, state where normal function calls are possible and cold start prevention policy is applied
Service cancellation Button to cancel the service Table. Cloud Functions status information and additional features
Detailed Information
Function list page, you can view detailed information of the selected resource and, if necessary, edit the information.
| Category | Detailed description |
|---|---|
| service | service name |
| Resource Type | Resource Type |
| SRN | Unique resource ID in Samsung Cloud Platform |
| Resource Name | Resource Name
|
| Resource ID | Unique resource ID of the service |
| Creator | User who created the service |
| Creation time | Date/time the service was created |
| Editor | User who modified the service |
| Modification Date and Time | Date and time the service was modified |
| Function name | Name of Cloud Function |
| Runtime | Runtime types and versions |
| LLM Endpoint | Click User Guide to view LLM Endpoint information and usage instructions |
Monitoring
You can view the Cloud Functions usage information of the selected resource on the Function List page.
| Category | Detailed description |
|---|---|
| Number of calls | Average number of times the function was called during the unit time (instances) |
| Execution Time | Average execution time (seconds) of the function during the unit time |
| Memory usage | Average memory usage (kb) used during the execution of the function per unit time |
| Current task count | If the function is called multiple times simultaneously, the average number of tasks generated per unit time for concurrent processing (count) |
| Successful call count | Average number of times (cases) the runtime code operated normally and delivered a response code per unit time when the function is called |
| Failed call count | Average number of calls with errors per unit time when the function is invoked
|
Log
You can view the Cloud Functions logs of the selected resource on the Function list page.
| Category | Detailed description |
|---|---|
| Unit period | Select the period to view Cloud Functions log information
|
| Log Message | Displayed in order from the most recent occurring function. |
Code
Function list page allows you to view and edit the Cloud Functions code of the selected resource.
The way to view and edit source code changes depending on the runtime used.
- Inline Editor: Node.js, Python, PHP, Go
- Run compressed file (.jar/.zip): Java
| Category | Detailed description |
|---|---|
| Source Code | Inline Editor Mode |
| Code Information | Display code information |
| Edit | Edit After clicking the button, you can edit the code in the inline editor |
| Category | Detailed description |
|---|---|
| Source code | Compressed file (.jar/.zip) execution method |
| Code Information | Compressed File Information Display
|
| Edit | Jar file can be changed
|
- In the case of Java Runtime, it does not provide UI code editing functionality, and you must select a compressed file (.jar/.zip) from the bucket of the Object Storage service.
- In case of users whose Object Storage service authentication key has not been generated, Import from Object Storage cannot be executed, so you must generate the authentication key in advance.
- For detailed information on creating authentication keys, refer to Create Authentication Key.
- Cloud Functions service’s Object Storage bucket’s access control must be changed to allow state.
- For detailed information about Object Storage access control, please refer to Allow Cloud Functions Service Access.
Composition
Function list page allows you to view the Cloud Functions configuration of the selected resource.
| Category | Detailed description |
|---|---|
| General Configuration | Cloud Function memory and timeout settings
|
| Environment Variable | Set runtime environment variables
|
| Function URL | Issue an HTTPS URL address that can access the function
|
| Private connection configuration | Can be used in conjunction with PrivateLink Service
|
- General Configuration’s memory allocation proportionally determines the number of CPU cores that are automatically assigned.
- General configuration’s minimum execution count of 1 or more prevents Cold Start, but costs are incurred continuously.
Trigger
Function List page allows you to view and configure trigger information of the selected resource. If you set a trigger, the Function can be automatically executed when an event occurs.
| Category | Detailed description |
|---|---|
| Cronjob | Use Cronjob as a trigger
|
| API Gateway | Use API Gateway as a trigger
|
- Deploying If in this state, cannot be edited.
- About trigger settings, please refer to Trigger Setup.
Tag
In the Tag tab, you can view the resource’s tag information, and add, modify, or delete it.
| Category | Detailed description |
|---|---|
| Tag List | Tag List
|
Work History
You can check the work history of resources on the Work History page.
| Category | Detailed description |
|---|---|
| Work History List | Resource Change History
|
Java Runtime Code Change
If you are using Java Runtime, you cannot modify the code directly, so you need to select and change the compressed file (.jar/.zip) in the bucket of the Object Storage service.
Follow the steps below to change the compressed file.
To cancel the Cloud Functions service, follow the steps below.
- Click the All Services > Compute > Cloud Functions menu. Go to the Service Home page of Cloud Functions.
- Service Home on the page click the Function menu. Navigate to the Function list page.
- Click the resource to change the compressed file within the code on the Function List page. Navigate to the Function Details page.
- Click the Edit button on the Code tab of the Function Details page. It moves to the Function Code Edit page.
- Import from Object Storage Click the button. Import from Object Storage popup opens.
| Category | Detailed description |
|---|---|
| Java Runtime | Java Runtime information |
| Handler Information | Handler Information
|
| Compressed file (.jar/.zip) | Set the compressed file to modify
|
- Object Storage URL After entering the URL information of the Object Storage from which to retrieve the compressed file, click the Confirm button. A notification popup will open.
- The URL information can be found in the Folder List tab of the detailed page of the Object Storage to be retrieved, under the File Information > Private URL item.
- Click the Confirm button. The name of the imported archive file is displayed in the Function code edit page’s Archive file name (.jar/.zip).
- Click the Save button.
- In case of a user whose authentication key has not been generated, Import from Object Storage cannot be executed.
- If the URL does not exist or the compressed file corresponds to the following, it cannot be changed.
- When using an unsupported extension
- If there is a harmful file in the compressed file
- If it exceeds the supported size
Cloud Functions Cancel
To cancel the Cloud Functions service, follow the steps below.
- All Services > Compute > Cloud Functions Click the menu. Navigate to the Service Home page of Cloud Functions.
- Click the Function menu on the Service Home page. Go to the Function List page.
- Function list page, click the resource to be terminated and click the Cancel Service button.
- When the termination is completed, check whether the resource has been terminated on the Function List page.