Home > Mobile >  Can Cloudformation trigger event after creation of each resource?
Can Cloudformation trigger event after creation of each resource?

Time:01-18

I am creating aws resources via cloudformation template. I need to call a lambda after the creation of a DynamoDB table resource which will populate certain default records in it. After populating the default records only the rest of the resources should be created.

CodePudding user response:

Sounds like you should create a custom resource, see docs custom resources in cfn. Let this lambda create what ever records you need and then call back with a success signal once done. What ever resources you need to put on hold can have a "DependsOn" on your custom resource.

  •  Tags:  
  • Related