S3 icon indicating copy to clipboard operation
S3 copied to clipboard

knox and aws objects empty

Open michaelcbrook opened this issue 8 years ago • 5 comments

I'm trying to get access to the aws client, but a console.log of S3 (after setting config) shows this:

{ config:
   { key: AWS_KEY,
     secret: AWS_SECRET,
     bucket: AWS_BUCKET,
     denyDelete: true },
  knox: {},
  aws: {},
  rules: {} }

I need access to the aws object to add a param for server-side encryption, which I think I can do if I can get that aws client.

Any help appreciated.

michaelcbrook avatar Sep 16 '16 20:09 michaelcbrook

S3.aws should give you the aws object. Does that work?

Lepozepo avatar Sep 16 '16 21:09 Lepozepo

No, it comes back as an empty object: {}

michaelcbrook avatar Sep 16 '16 21:09 michaelcbrook

Hi, I had that same problem when I first installed the package. Removing it and reinstalling fixed it.

joaopiopedreira avatar Oct 03 '16 11:10 joaopiopedreira

I have an issue deleting files, both knox and aws objects come out empty too https://github.com/Lepozepo/S3/issues/132

lmatheus avatar Nov 08 '16 23:11 lmatheus

I am also having the same issue. Even after removing and installing it back.

 { config:
    { key: '',
      secret: '',
      bucket: 'cas',
      region: 'ap-sot-1' },
   knox: {},
   aws: {},
   rules: {} }

hazz1925 avatar Dec 27 '17 03:12 hazz1925