Comments (5)
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.
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:
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.
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.
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.
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)
- Retention Policy for the Snapshots HOT 2
- Error In Cross Copy HOT 3
- KMSKeyNotAccessibleFault HOT 5
- Issues with snapshots deleting HOT 1
- Resource import error HOT 2
- AccessDenied HOT 9
- Cross Region RDS Backup Copy CFN Not working HOT 3
- RDS-SnapshotQuotaExceeded HOT 1
- RDS-snapshot: Trigger with Event Bridge + cron failed
- Lambda function is triggered but fails HOT 5
- Cross-region RDS backup copy fails with encrypted snapshots HOT 3
- CF creation fails with new instructions HOT 6
- Issue in taking snapshot HOT 2
- Aurora support HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-maintenance.