just leaving this here before I actually go to bed...
# help
s
just leaving this here before I actually go to bed.. I’m having trouble granting a Lambda func permissions to two buckets:
Copy code
transcodeFunction.attachPermissions([
    [props!.uploadBucket, 'grantRead'],
    [props!.storageBucket, 'grantWrite'],
  ]);
when I deploy, I get this:
Copy code
TypeError: construct[methodName] is not a function
ah, got it.
[props!.uploadBucket.s3Bucket, 'grantRead']
f
Yup!
t
We can maybe typecheck this better
f