1. Fantastic guide and a brilliant solution to a problem I was scratching my head over for too long. Much appreciated for sharing your wisdom on this.

  2. Hi,

    How does your topic arn:aws:sns:us-east-1:5556667778:cross-account-topic”looks like?
    I converted your code to cloudformation like

    Type: “AWS::SNS::Topic”

    this topic is a target for an eventrule, unf i do not see the lambda triggered ..

    if i’m trying to setup cloudformation in account A like

    Type: “AWS::SNS::Topic”
    – Endpoint: “arn:aws:lambda-Account B”
    Protocol: “lambda”
    the resource can’t be created because of an error stating you are not the owner of the endpoint

  3. Should be possible. You’ll need to look up how to add a resource based policy using Serverless. If its not feature of SLS, then you should at least be able to use the serverless hooks or plugins system to at least do it by running aws cli as part of the sls deploy command lifecycle.

  4. I think it is a crime to leave such a wonderful guide without a comment. Works perfectly and nice code examples, helped me a lot.

Leave a Reply

Your email address will not be published. Required fields are marked *

ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.

This site uses Akismet to reduce spam. Learn how your comment data is processed.