« first day (7 days earlier)    last day (15 days later) » 

1:01 AM
The CloudFormation template that I added to my answer (same as above) works successfully. I suggest you start with that template, confirm that it works for you, then modify it to your needs, testing as you go. Something in your template is causing it to fail.
 
Sid
It worked, i just changed the depends on parameter in custom resource I had and it worked perfectly, thank you for the support
 
1:35 AM
Yay! Good to know! :)
 
Sid
1:53 AM
Now do you have any thoughts on how to delete resources created by a lambda in cloudformation, cloudformation delete stack will only delete lambda not the resources
probably create another lambda to be triggered when an event of stack delete comes in?
 
2:35 AM
The Custom Resource actually gets called when the stack is created, updated, or deleted. Use the "RequestType" provided in the request to know why it is being called. Then, for "Delete", you can run code that removes resources.
Actually, you should check that value even for Create, otherwise your "create" code will run again when the stack is deleted.
 
 
21 hours later…
Sid
11:36 PM
Hmm, I went to the custom resources docs, didn't quite understand. How do I capture the request type? "Actually, you should check that value even for Create, otherwise your "create" code will run again when the stack is deleted." How do I capture request type, should I have 2 different type of lambda function within one lambda, one for create and one for delete?
 

« first day (7 days earlier)    last day (15 days later) »