@@ -50,18 +50,18 @@ ALL {resource.type = 'fnfunc', resource.compartment.id = 'ocid1.compartment.oc1.
50
50
51
51
52
52
## Create or Update IAM Policies
53
- Create a new policy that allows the dynamic group to manage ` object-family ` in
53
+ Create a new policy that allows the dynamic group to ` manage objects ` in
54
54
the functions related compartment.
55
55
56
56
![ user input icon] ( ../images/userinput.png )
57
57
58
58
Your policy should look something like this:
59
59
```
60
- Allow dynamic-group <dynamic-group-name> to manage object-family in compartment <compartment-name>
60
+ Allow dynamic-group <dynamic-group-name> to manage objects in compartment <compartment-name>
61
61
```
62
62
e.g.
63
63
```
64
- Allow dynamic-group demo-func-dyn-group to manage object-family in compartment demo-func-compartment
64
+ Allow dynamic-group demo-func-dyn-group to manage objects in compartment demo-func-compartment
65
65
```
66
66
For more information on how to create policies, go [ here] ( https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policysyntax.htm ) .
67
67
@@ -105,11 +105,16 @@ fn config app <app-name> NAMESPACE <object-storage-namespace>
105
105
```
106
106
e.g.
107
107
```
108
- fn config app myapp NAMESPACE mytenancy
108
+ fn config app myapp NAMESPACE myobjnamespace
109
109
```
110
110
111
111
Note that the config value can also be set at the function level.
112
112
113
+ ## Create a bucket called "test"
114
+
115
+ ![ user input icon] ( ../images/userinput.png )
116
+
117
+ From the OCI Console > Core Infrastructure > Object Storage > Create Bucket with bucket name = "test"
113
118
114
119
## Test
115
120
@@ -121,6 +126,6 @@ echo -n '{"name": "<object-name>", "bucketName":"<bucket-name>", "content": "<te
121
126
```
122
127
e.g.
123
128
```
124
- echo -n '{"name": "file1.txt", "bucketName":"test ", "content": "This file was created in OCI object storage bucket using Oracle Functions"}' | fn invoke myapp oci-objectstorage-put-object-java
129
+ echo -n '{"name": "file1.txt", "bucketName":"mybucket ", "content": "This file was created in OCI object storage bucket using Oracle Functions"}' | fn invoke myapp oci-objectstorage-put-object-java
125
130
```
126
131
You should see a success message appear in your terminal.
0 commit comments