Oracle Cloud Functions (Python) – Hands-On Learning

Unlocking the Power of Oracle Cloud Functions with Python: Practical Hands-On Learning Made Simple

Overview of Functions:

What you’ll learn

  • Create Oracle Cloud (OCI) Functions with Python programming language.
  • Deploy Oracle Cloud (OCI) Functions.
  • Invoke Oracle Cloud (OCI) Functions.
  • OCI Functions develop with local development Linux machine.
  • OCI Functions develop with Oracle Cloud Shell.

Course Content

  • Introduction –> 1 lecture • 4min.
  • Oracle Cloud account (optional) –> 2 lectures • 11min.
  • Overview of Functions –> 1 lecture • 5min.
  • Function Application –> 1 lecture • 3min.
  • API Signing Key –> 1 lecture • 4min.
  • Functions (Local Development – Linux Ubuntu Machine) –> 7 lectures • 19min.
  • Functions (Oracle Cloud Shell) –> 1 lecture • 6min.
  • POSTMAN –> 1 lecture • 1min.
  • Custom Configuration Parameters –> 1 lecture • 6min.
  • Use Case: Microsoft Excel (worksheet / workbook) file –> 1 lecture • 7min.
  • Use Case: Call One Function from another –> 1 lecture • 3min.
  • Use Case: Split Files (FTP) –> 2 lectures • 20min.
  • Use Case: OCI Vault –> 3 lectures • 11min.
  • Use Case: OCI event to invoke Function –> 1 lecture • 4min.
  • Use Case: Object Storage –> 1 lecture • 9min.
  • Use Case: SFTP Server –> 1 lecture • 4min.
  • Use Case: API Gateway –> 1 lecture • 6min.
  • Congratulations –> 1 lecture • 1min.

Auto Draft

Requirements

Overview of Functions:

Oracle Cloud Infrastructure Functions is a fully managed, multi-tenant, highly scalable, on-demand, Functions-as-a-Service platform. It is built on enterprise-grade Oracle Cloud Infrastructure and powered by the Fn Project open source engine. Use OCI Functions (sometimes abbreviated to just Functions, and formerly known as Oracle Functions) when you want to focus on writing code to meet business needs.

The serverless and elastic architecture of OCI Functions means there’s no infrastructure administration or software administration for you to perform. You don’t provision or maintain compute instances, and operating system software patches and upgrades are applied automatically. OCI Functions simply ensures your app is highly-available, scalable, secure, and monitored. With OCI Functions, you can write code in Java, Python, Node, Go, Ruby, and C# (and for advanced use cases, bring your own Dockerfile, and Graal VM). You can then deploy your code, call it directly or trigger it in response to events, and get billed only for the resources consumed during the execution.

OCI Functions is based on Fn Project. Fn Project is an open source, container native, serverless platform that can be run anywhere – any cloud or on-premises. Fn Project is easy to use, extensible, and performant. You can download and install the open source distribution of Fn Project, develop and test a function locally, and then use the same tooling to deploy that function to OCI Functions.

You can access OCI Functions using the Console, a CLI, and a REST API. You can invoke the functions you deploy to OCI Functions using the CLI or by making signed HTTP requests.

OCI Functions is integrated with Oracle Cloud Infrastructure Identity and Access Management (IAM), which provides easy authentication with native Oracle Cloud Infrastructure identity functionality.

 

Ways to Access Oracle Cloud Infrastructure:

You can access Oracle Cloud Infrastructure (OCI) by using the Console (a browser-based interface), REST API, or OCI CLI. Instructions for using the Console, API, and CLI are included in topics throughout this documentation.

To access the Console, you must use a supported browser. To go to the Console sign-in page, open the navigation menu at the top of this page and click Infrastructure Console. You are prompted to enter your cloud tenant, your user name, and your password.

 

Creating Automation with Events:

You can create automation based on state changes for your Oracle Cloud Infrastructure resources by using event types, rules, and actions.

The following OCI Functions resources emit events:

  • applications
  • functions

 

Authentication and Authorization:

Each service in Oracle Cloud Infrastructure integrates with IAM for authentication and authorization, for all interfaces (the Console, SDK or CLI, and REST API).

An administrator in your organization needs to set up groups , compartments , and policies that control which users can access which services, which resources, and the type of access. For example, the policies control who can create new users, create and manage the cloud network, launch instances, create buckets, download objects, and so on.

If you’re a regular user (not an administrator) who needs to use the Oracle Cloud Infrastructure resources that your company owns, contact your administrator to set up a user ID for you. The administrator can confirm which compartment or compartments you should be using.

 

OCI Functions Capabilities and Limits:

The number of functions and applications you can create in a region is controlled by OCI Functions service limits. The default service limits vary according to your payment method. If you need more capacity, you can submit a request to increase the default service limits.

The maximum amount of data you can send to a function (the function’s request payload) is 6MB. The maximum amount of data a function can return in response to a request (the function’s response payload) is 6MB. These limits are fixed and cannot be changed.

Some other OCI Functions capabilities and limits are also fixed. However, there are also a number that you can change.

Get Tutorial