for the target account, can you instead of modifying the "Bucket Policy" create an IAM Role in the target account the account A lambda ( source ) can assume in account B (target)?
Thanks for this but it errors when I run it.... The error message is ""require is not defined in ES module scope, you can use import instead". Any idea how to resolve this?
Thanks for sharing the video, However, I wanted to check in Account A you did not mention the account id of B where the Bucket is hosted (under Resource). Wondering, how does account A know where the Bucket is, I feel giving the name without account id won't suffice. Pls correct me if I am wrong.
Really good up to the point where you went off on one typing code in........ You completely lost me at this stage which is a shame because up to that point all was quite understandable.
Thank you for such amazing content!! Looking forward for more videos.
More power to you, brother, keep making this video's
Very detailed. Thanks!
Glad that u found it helpful mate!!
Great video. Thanks!
Thanks mate!!
for the target account, can you instead of modifying the "Bucket Policy" create an IAM Role in the target account the account A lambda ( source ) can assume in account B (target)?
this is a much more scalable solution
Great video, got completely lost when you starting typing the code though, where are we supposed to learn that for AWS?
Thanks for this but it errors when I run it.... The error message is ""require is not defined in ES module scope, you can use import instead". Any idea how to resolve this?
Thanks for sharing the video, However, I wanted to check in Account A you did not mention the account id of B where the Bucket is hosted (under Resource). Wondering, how does account A know where the Bucket is, I feel giving the name without account id won't suffice. Pls correct me if I am wrong.
since aws s3 bucket names are globally unique, providing the bucket name is sufficient. u dont need the account id of account B
Do we have to write policy code by ourselves.... Or we get from documents
so we have two policies at play here, one for the role in account 1, and one for the bucket in account 2...
Is it possible to do it cross region?
Really good up to the point where you went off on one typing code in........ You completely lost me at this stage which is a shame because up to that point all was quite understandable.
why tf people choose node is beyond me