File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
infra-gen2/backends/storage/main/amplify/storage Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { defineStorage } from "@aws-amplify/backend" ;
2
2
3
- export const storage = defineStorage ( {
4
- name : "Storage Integ Test main" ,
3
+ export const firstBucket = defineStorage ( {
4
+ name : "Storage Integ Test main bucket" ,
5
+ isDefault : true ,
6
+ access : ( allow ) => ( {
7
+ "public/*" : [
8
+ allow . guest . to ( [ "read" , "write" , "delete" ] ) ,
9
+ allow . authenticated . to ( [ "read" , "delete" , "write" ] ) ,
10
+ ] ,
11
+ "protected/{entity_id}/*" : [
12
+ allow . authenticated . to ( [ "read" ] ) ,
13
+ allow . entity ( "identity" ) . to ( [ "read" , "write" , "delete" ] ) ,
14
+ ] ,
15
+ "private/{entity_id}/*" : [
16
+ allow . entity ( "identity" ) . to ( [ "read" , "write" , "delete" ] ) ,
17
+ ] ,
18
+ } ) ,
19
+ } ) ;
20
+
21
+ export const secondBucket = defineStorage ( {
22
+ name : "Storage Integ Test secondary bucket" ,
5
23
access : ( allow ) => ( {
6
24
"public/*" : [
7
25
allow . guest . to ( [ "read" , "write" , "delete" ] ) ,
You can’t perform that action at this time.
0 commit comments