Skip to content

Commit 9a3741b

Browse files
reviewed
1 parent 59bf4ca commit 9a3741b

File tree

6 files changed

+66
-14
lines changed

6 files changed

+66
-14
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Copyright (c) 2024 Oracle and/or its affiliates.
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any
6+
person obtaining a copy of this software, associated documentation and/or data
7+
(collectively the "Software"), free of charge and under any and all copyright
8+
rights in the Software, and any and all patent rights owned or freely
9+
licensable by each licensor hereunder covering either (i) the unmodified
10+
Software as contributed to or provided by such licensor, or (ii) the Larger
11+
Works (as defined below), to deal in both
12+
13+
(a) the Software, and
14+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15+
one is included with the Software (each a "Larger Work" to which the Software
16+
is contributed by such licensors),
17+
18+
without restriction, including without limitation the rights to copy, create
19+
derivative works of, display, perform, and distribute the Software and make,
20+
use, sell, offer for sale, import, export, have made, and have sold the
21+
Software and the Larger Work(s), and to sublicense the foregoing rights on
22+
either these or other terms.
23+
24+
This license is subject to the following condition:
25+
The above copyright notice and either this complete permission notice or at
26+
a minimum a reference to the UPL must be included in all copies or
27+
substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.
36+

app-dev/devops-and-containers/functions/os-replication/README.md

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,46 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3636
SOFTWARE.
3737
-->
3838

39-
## Functions overview
40-
[Document functions-overview](files/Fn.pdf)
39+
# Example function to copy a file from an Object Storage bucket to multiple other buckets when uploaded
4140

42-
### Author
43-
<a href="https://github.com/mikarinneoracle">mikarinneoracle</a>
41+
Reviewed: 31.10.2024
42+
43+
# When to use this asset?
44+
45+
Anyone who wants to implement content distribution in Object Storage buckets across multiple regions. This function is triggered by the upload CloudEvent of the source bucket and then copies the received file to multiple (1-n) other buckets that are replicated to other regions using the Object Storage buckets automatic replication feature. This way we can implement content distribution in Object Storage buckets across multiple regions.
4446

45-
# Example function to copy a file from an Object Storage bucket to multiple other buckets when uploaded
47+
# Author
48+
<a href="https://github.com/mikarinneoracle">mikarinneoracle</a>
4649

47-
### The Use case
50+
# How to use this asset?
4851

49-
The use case is that this function will be triggered by the upload CloudEvent of the source bucket
50-
and then it copies the received file to multiple (1-n) other buckets that are replicated to other regions
51-
using the Object Storage buckets automatic replication feature. This way we can implement content distribution
52-
in Object Storage buckets across multiple regions.
52+
## Function configuration
5353

54-
<p>
55-
<h3>Function configuration</h3>
56-
<img src="images/config.png" width="800">
54+
<img src="files/config.png" width="800">
5755
<ul>
5856
<li><code>TENANCY</code> is the tenancy os namespace name e.g. what you get when running <code>oci os ns get</code></li>
5957
<li><code>SOURCE_BUCKET</code> is the bucket where the file is uploaded and triggers this function using a CloudEvent</li>
6058
<li><code>TARGET_BUCKETS</code> are the comma delimited buckets to where the file is copied from the source bucket are replicatyed to other regions using the Object Storage replication feature</li>
6159
</ul>
6260

6361
<h3>Function example log when triggered by the Object Storage file upload (create/update) CloudEvent</h3>
64-
<img src="images/log.png" width="800">
62+
<img src="files/log.png" width="800">
63+
64+
65+
# Useful Links
66+
67+
- [OCI Functions](https://docs.oracle.com/en-us/iaas/Content/Functions/Concepts/functionsoverview.htm)
68+
- Learn how the Functions service lets you create, run, and scale business logic without managing any infrastructure
69+
- [OCI SDK for JavaScript](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdk.htm)
70+
- The Oracle Cloud Infrastructure SDK for TypeScript and JavaScript enables you to write code to manage Oracle Cloud Infrastructure resources
71+
- [Oracle](https://www.oracle.com/)
72+
- Oracle Website
73+
74+
### License
75+
76+
Copyright (c) 2024 Oracle and/or its affiliates.
77+
78+
Licensed under the Universal Permissive License (UPL), Version 1.0.
79+
80+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
6581

0 commit comments

Comments
 (0)