Git Product home page Git Product logo

Comments (5)

pbudzon avatar pbudzon commented on June 15, 2024

Hi @fsantarelli

This seems to be an error from Lambda, not CloudFormation. Can you confirm that the CF stack was created successfully, but you're getting this error when the Lambda itself tries to run?

from aws-maintenance.

fsantarelli avatar fsantarelli commented on June 15, 2024

Hi @pbudzon and sorry for the mess - somehow I copied the logs from a different function that I was trying to use before.

The CloudFormation creation rollsback and doesn't export any logs to CloudWatch, so here's a print from the CF events tab after the rollback:

image

Please let me know if you prefer me to edit my first post or maybe raise a better issue report and delete this one. :)

from aws-maintenance.

pbudzon avatar pbudzon commented on June 15, 2024

Hi @fsantarelli

RDS events work only on RDS instances for the same region, so the Lambda can only subscribe to RDS instances within the region it's created... I don't know why I forgot about this, when I was writing the README, apologies. I'll update the README and simplify the CF stack (since there's no need to specify SOURCE_REGION explicitly) later today.

The short answer is: the stack needs to be in the same region as RDS instances you want to use it for.

Feel free to modify the first post to match this. The encrypted snapshots may be another thing completely - can you test with fixes from #3 and see if it works on your encrypted database? I'm guessing it will fail, since KMS keys are region-specific, so cross-region copy needs to specify a new key (in the target region), that RDS can use to re-encrypt the copied snapshot. If that's the case, please open another issue, and I'll take a look at adding support for KMS.

Thanks!

from aws-maintenance.

fsantarelli avatar fsantarelli commented on June 15, 2024

Hi @pbudzon - no problem and many thanks again for the help.

I've just tested the Lambda and yes, it needs the KMS key to copy the encrypted snapshot. I'll raise a specific issue with the logs I've just collected.

from aws-maintenance.

pbudzon avatar pbudzon commented on June 15, 2024

Removed the source region parameter from CF template, since it has to be the same as the source region where the stack is being created and added that info to the README.

Thanks for the report!

from aws-maintenance.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.