This repository was archived by the owner on Apr 2, 2020. It is now read-only.
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ backend:
90
90
runtime : nodejs10.x # The runtime for the lambda. Only nodejs10.x or nodejs8.10 are allowed
91
91
memory : 128
92
92
timeout : 10
93
- description : A function for the registry backend.
93
+ description : A function for the registry backend.
94
+ bucketName : myBucket # (Optional) The Bucket name where `src` files/folder will be upload.
95
+ # If not provided, it will create random bucket name prefixed by `backend-`
94
96
env :
95
97
TABLE_NAME : my-table
96
98
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class Backend extends Component {
25
25
async default ( inputs = { } ) {
26
26
this . context . status ( 'Deploying' )
27
27
28
+ inputs . bucketName = inputs . bucketName || 'backend-' + this . context . resourceId ( )
28
29
inputs . region = inputs . region || 'us-east-1'
29
30
30
31
// Default to current working directory
@@ -78,7 +79,7 @@ class Backend extends Component {
78
79
79
80
this . context . status ( 'Deploying AWS S3 Bucket' )
80
81
const bucketOutputs = await bucket ( {
81
- name : 'backend-' + this . context . resourceId ( ) ,
82
+ name : inputs . bucketName ,
82
83
region : inputs . region
83
84
} )
84
85
You can’t perform that action at this time.
0 commit comments