File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " simplify-sdk" ,
3- "version" : " 0.1.57 " ,
3+ "version" : " 0.1.58 " ,
44 "description" : " Simplify Framework SDK library for NodeJS" ,
55 "main" : " simplify.js" ,
66 "dependencies" : {
Original file line number Diff line number Diff line change @@ -33,15 +33,18 @@ module.exports = {
3333 } else {
3434 AWS . config . update ( { credentials : credentials } ) ;
3535 console . log ( `${ CBEGIN } Simplify${ CRESET } | AWSProvider-Credentials: ${ AWS . config . credentials . profile ? AWS . config . credentials . profile : 'default' } ` )
36- s3BucketParams . Bucket = ( config . Bucket || { } ) . Name
37- if ( config . Region != 'us-east-1' ) {
38- s3BucketParams . CreateBucketConfiguration = {
39- LocationConstraint : config . Region
36+ if ( config . Bucket ) {
37+ s3BucketParams . Bucket = ( config . Bucket || { } ) . Name
38+ s3BucketParams . ACL = 'private'
39+ if ( config . Region != 'us-east-1' ) {
40+ s3BucketParams . CreateBucketConfiguration = {
41+ LocationConstraint : config . Region
42+ }
43+ }
44+ if ( config . ServerSideEncryption && config . SSEKMSKeyId ) {
45+ s3BucketParams . ServerSideEncryption = config . ServerSideEncryption
46+ s3BucketParams . SSEKMSKeyId = config . SSEKMSKeyId
4047 }
41- }
42- if ( config . ServerSideEncryption && config . SSEKMSKeyId ) {
43- s3BucketParams . ServerSideEncryption = config . ServerSideEncryption
44- s3BucketParams . SSEKMSKeyId = config . SSEKMSKeyId
4548 }
4649 awsconfig = config
4750 resolve ( AWS . config . credentials )
You can’t perform that action at this time.
0 commit comments