The page has been translated by Gen AI.

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

  1. Click the All Services > Compute > Cloud Functions menu. Navigate to the Service Home page of Cloud Functions.

  2. Click the Create Cloud Functions button on the Service Home page. It navigates to the Create Cloud Functions page.

  3. Create Cloud Functions page, enter the information required to create the service.

    Category
    Required
    Detailed description
    Funtion nameRequiredEnter 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
    RuntimeRequiredSelect Runtime creation method
    • Create new: Create a new Runtime
    • Start with Blueprint: Create using the Runtime source code provided by the service
    Runtime & VesionRequiredSelect Runtime and Version
    • Create New을 선택한 경우
      • 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
    Table. Cloud Functions Service Information Input Items

  4. 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.

  1. All Services > Compute > Cloud Functions Click the menu. Go to the Service Home page of Cloud Functions.
  2. Click the Function menu on the Service Home page. Move to the Function List page.
  3. 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.
    CategoryDetailed description
    Cloud Functions statusCloud 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 cancellationButton 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.

CategoryDetailed description
serviceservice name
Resource TypeResource Type
SRNUnique resource ID in Samsung Cloud Platform
Resource NameResource Name
  • In the Cloud Functions service, it refers to the Function name
Resource IDUnique resource ID of the service
CreatorUser who created the service
Creation timeDate/time the service was created
EditorUser who modified the service
Modification Date and TimeDate and time the service was modified
Function nameName of Cloud Function
RuntimeRuntime types and versions
LLM EndpointClick User Guide to view LLM Endpoint information and usage instructions
Table. Cloud Functions Details - Detailed Information Tab Items
Reference
For detailed information on how to use LLM by integrating AIOS, please refer to Integrate AIOS.

Monitoring

You can view the Cloud Functions usage information of the selected resource on the Function List page.

CategoryDetailed description
Number of callsAverage number of times the function was called during the unit time (instances)
Execution TimeAverage execution time (seconds) of the function during the unit time
Memory usageAverage memory usage (kb) used during the execution of the function per unit time
Current task countIf the function is called multiple times simultaneously, the average number of tasks generated per unit time for concurrent processing (count)
Successful call countAverage number of times (cases) the runtime code operated normally and delivered a response code per unit time when the function is called
Failed call countAverage number of calls with errors per unit time when the function is invoked
  • Including runtime due to response timeouts and logic errors
Table. Cloud Functions Details - Monitoring Tab Items

Log

You can view the Cloud Functions logs of the selected resource on the Function list page.

CategoryDetailed description
Unit periodSelect the period to view Cloud Functions log information
  • Select in time units (1 hour, 3 hours, 12 hours) or set manually
Log MessageDisplayed in order from the most recent occurring function.
Table. Cloud Functions Details - Log Tab Items
Reference
Log messages can be viewed up to the previous 1,000 messages based on the most recent occurrence.

Code

Function list page allows you to view and edit the Cloud Functions code of the selected resource.

Reference

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
CategoryDetailed description
Source CodeInline Editor Mode
Code InformationDisplay code information
EditEdit After clicking the button, you can edit the code in the inline editor
Table. Cloud Functions Details - Inline Editor Items in Code Tab
CategoryDetailed description
Source codeCompressed file (.jar/.zip) execution method
Code InformationCompressed File Information Display
  • Java Runtime: Java Runtime version information
  • Handler Information: Execution Class and Method information
  • Compressed file name (.jar/.zip): Name of the currently set compressed file
  • File upload date and time: Upload date and time of the currently set compressed file
  • Transmission status: Compressed file transmission history
    • Transmission success: When the compressed file setting is successful
    • Reason for failure when compressed file transmission fails
EditJar file can be changed
  • Can be changed by clicking the Get from Object Storage button on the Function code edit page
  • Enter the Private URL of the file in the Object Storage bucket to be fetched
  • For details on changing compressed files, refer to [Java Runtime code change](#java-runtime code change)
Table. Cloud Functions Details - Execution Items of Compressed Files (.jar/.zip) in Code Tab
Reference
  • 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.
  • Cloud Functions service’s Object Storage bucket’s access control must be changed to allow state.

Composition

Function list page allows you to view the Cloud Functions configuration of the selected resource.

CategoryDetailed description
General ConfigurationCloud Function memory and timeout settings
  • Memory: Maximum memory limit per function
  • Timeout: Maximum waiting time for a function call per function. After the timeout, the function goes into a Scale-to-zero state and terminates
  • Function execution: Minimum and maximum number of tasks
  • Click the Edit button to change the General Configuration settings
Environment VariableSet runtime environment variables
  • When using environment variables, you can adjust the function’s behavior without updating the code
  • Edit button to environment variable can be added or edited
Function URLIssue an HTTPS URL address that can access the function
  • Click the Edit button to set activation status, authentication type, and allowed IP
  • When calling the function authenticated with IAM type, the header must include “x-scf-access-key”, “x-scf-secret-key”. In this case, policy and authentication key IP access control are not applied
Private connection configurationCan be used in conjunction with PrivateLink Service
Table. Cloud Functions Details - Configuration Tab Items
Caution
If you disable Access Control, the registered access information will be deleted, making function access control impossible, so it may be exposed to security attacks such as external scanning and hacking.
Reference
  • 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.

CategoryDetailed description
CronjobUse Cronjob as a trigger
  • Automatically invoke the function according to time or a scheduled interval
  • Click the Edit button to change the frequency and time zone
API GatewayUse API Gateway as a trigger
  • You can view the API Gateway name and detailed information.
Table. Cloud Functions Details - Trigger Tab Items
Caution
If you call the Cronjob trigger before the function timeout, the function will run nestedly, increasing the execution count and duration. Consequently, continuous additional costs can accrue, leading to high expenses, so be careful.
Reference
  • 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.

CategoryDetailed description
Tag ListTag List
  • Tag’s Key, Value information can be checked
  • Up to 50 tags can be added per resource
  • When entering tags, search and select from the existing list of created Keys and Values
Table. Cloud Functions Details - Tag Tab Items

Work History

You can check the work history of resources on the Work History page.

CategoryDetailed description
Work History ListResource Change History
  • Work details, work date and time, resource type, resource name, work result, worker information can be checked
  • When you click the corresponding resource in the Work History List, the Work History Details popup opens
Table. Cloud Functions Details - Job History Tab Items

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.

  1. Click the All Services > Compute > Cloud Functions menu. Go to the Service Home page of Cloud Functions.
  2. Service Home on the page click the Function menu. Navigate to the Function list page.
  3. Click the resource to change the compressed file within the code on the Function List page. Navigate to the Function Details page.
  4. Click the Edit button on the Code tab of the Function Details page. It moves to the Function Code Edit page.
  5. Import from Object Storage Click the button. Import from Object Storage popup opens.
CategoryDetailed description
Java RuntimeJava Runtime information
Handler InformationHandler Information
  • Execution Class: Automatically entered when setting compressed file (.jar/.zip)
  • Execution Method: Automatically entered when setting compressed file (.jar/.zip)
Compressed file (.jar/.zip)Set the compressed file to modify
  • Compressed file name (.jar/.zip): Displays the name of the compressed file. After setting Get from Object Storage, it is entered automatically
  • Get from Object Storage: Set the Object Storage to retrieve the compressed file (.jar/.zip)
Table. Cloud Functions Details - Function Code Modification Items
  1. 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.
  2. 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).
  3. Click the Save button.
Caution
  • 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.

  1. All Services > Compute > Cloud Functions Click the menu. Navigate to the Service Home page of Cloud Functions.
  2. Click the Function menu on the Service Home page. Go to the Function List page.
  3. Function list page, click the resource to be terminated and click the Cancel Service button.
  4. When the termination is completed, check whether the resource has been terminated on the Function List page.
Overview
Set Trigger