Giter Site home page Giter Site logo

oracle-samples / oracle-functions-samples Goto Github PK

View Code? Open in Web Editor NEW
118.0 19.0 117.0 6.43 MB

Examples demonstrating how to use Oracle Functions

Home Page: https://www.oracle.com/cloud/cloud-native/functions/

License: Universal Permissive License v1.0

oracle-cloud-infrastructure oracle-cloud faas serverless-functions python java functions-as-a-service oracle-functions

oracle-functions-samples's Introduction

Oracle Functions Samples

Oracle Functions logo

This repository provides examples demonstrating how to use Oracle Functions.

Setup

Basic Observability Guidance

How To

Description Python Java
Hello World sample sample
List OCI Compute instances sample sample
Control OCI Compute instances (start/stop/status) sample
List OCI compartments sample
List objects in OCI Object Storage sample sample
Read an object in OCI Object Storage sample sample
Create an object in OCI Object Storage sample sample
Create a PAR in OCI Object Storage sample
Copy object from one OCI Object Storage bucket to another sample
Display an OCI Cloud Event sample
Invoke another Function using the OCI SDK sample
Run a SQL statement against Autonomous DB using ORDS sample
Run a SQL statement against Autonomous DB using DB Client sample
Publish a notification using ONS sample
Send an email using Email Delivery Service sample
Decrypt cipher using Vault keys sample
Get a secret from Vault sample
Write IAM policies that enables Functions in a tenancy to access resources in other tenancies sample
Trace a function with APM and add custom child spans using Zipkin sample

Functions and API Gateway

Oracle Cloud Functions and OCI API Gateway together enable developers to create serverless APIs and perform function based authorization.

Description Python Java
API Gateway Function authorizer for IDCS sample
Function that returns the API Gateway HTTP request information for testing sample
Validate an API key sample
BasicAuth Validation with IDCS sample

Using Service Connector Hub with Functions

Description Code
Logging >> Service Connector Hub >> Functions
Move logs from OCI to Datadog using Service Connector Hub, Logging (Source), Functions (Target) and Datadog sample
Send SMS messages for logs using Service Connector Hub, Logging (Source), Functions (Target) and Syniverse SMS sample
Streaming >> Service Connector Hub >> Functions
Convert JSON to CSV format using Service Connector Hub, Streams (Source and Target) and Functions (Task) sample
Convert JSON to Parquet format using Service Connector Hub, Streams (Source and Target) and Functions (Task) sample

Other Use Cases

Description Code
Provide the size of an image (Custom Dockerfile, image library) sample
Automatically load data from Object Storage into Autonomous DataWarehouse sample
Automatically resize VM on High Memory Alerts (Notifications trigger a function) sample
Check if a compute instance is tagged correctly on provisioning, if not, stop it sample
Send SMS messages for monitoring alarms using Monitoring, Notifications Service, Functions and Syniverse SMS sample
Export a collection of historical metrics from Monitoring Service using the Monitoring Query Language (MQL) sample

Community-led Examples

Description Code Blog
Serverless SaaS Extensions using Oracle Functions, API Gateway and VBCS repo blog
Function that demonstrates connectivity between Oracle SaaS applications with OIC sample

Documentation

You can find the online documentation for Oracle Functions at docs.oracle.com and information about the Fn project at https://fnproject.io/.

Contributing

See CONTRIBUTING

Security

Please consult the security guide for our responsible security vulnerability disclosure process

License

See LICENSE

oracle-functions-samples's People

Contributors

aberinnj avatar carldownsoracle avatar crush-157 avatar dario-vega avatar dependabot[bot] avatar dvukmano avatar gotsysdba avatar govinnd avatar gregvers avatar igfasouza avatar karankap avatar metamemelord avatar mohitmagal avatar sachin-pikle avatar spavlusieva avatar swigmaster avatar wunderlichrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oracle-functions-samples's Issues

oci-adb-client-runsql-python - Issue

Get the following issue when trying to deploy oci-adb-client-runsql-python sample:

Complete output from command python setup.py egg_info:

        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================

oci-serviceconnector-streaming-json-to-csv-python not working

The sample is not working.

https://github.com/oracle-samples/oracle-functions-samples)/[samples](https://github.com/oracle-samples/oracle-functions-samples/tree/master/samples)/oci-serviceconnector-streaming-json-to-csv-python/

The input of the service connector looks like this:

"01GBK286021BT0Q4RZJ002PCNH - root - INFO - {'stream': 'mg-input-sc', 'partition': '0', 'key': None, 'value': 'W3sic3RyZWFtIjogIm15bmV3c3RyZWFtIiwicGFydGl0aW9uIjogIjAiLCJ2YWx1ZSI6ICJleUp1WVcxbElqb2lhV2R2Y2lJc0lDSnNiMk5oZEdsdmJpSTZJQ0pFZFdKc2FXNGlmUT09Iiwib2Zmc2V0IjogMCwidGltZXN0YW1wIjogIjIwMTgtMDQtMjZUMDE6MDM6MDYuMDUxWiJ9LHsic3RyZWFtIjogIm15bmV3c3RyZWFtIiwicGFydGl0aW9uIjogIjAiLCJ2YWx1ZSI6ICJleUp1WVcxbElqb2lZbkpwWVc0aUxDSm1hV1ZzWkRFaU9pSjBaWE4wSW4wPSIsIm9mZnNldCI6IDAsInRpbWVzdGFtcCI6ICIyMDE4LTA0LTI2VDAxOjAzOjA2LjA1MVoifV0=', 'offset': 10, 'timestamp': 1661718357219}"

Notice that key is None.

I am not sure why it is written this part of the code but this is causing issue:

        if 'key' in item:
            item['key'] = base64_decode(item['key'])

The same problem happens also with the test.json file that is in the sample directory.
If you remove the lines, it works. I am not sure of the intention of these 2 lines.

Project Status

Is this project actively maintained? Or any referral link to alternative sample projects?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.