aws-samples / aws-serverless-shopping-cart

Serverless Shopping Cart is a sample implementation of a serverless shopping cart for an e-commerce website.
MIT No Attribution
329 stars 417 forks source link

fix: add DependsOn for policies to avoid potential cfn issue #7

Closed to-mc closed 4 years ago

to-mc commented 4 years ago

Description of changes: Stack can potentially fail if logging policies are not created and added to the roles before the function is created. This resolves that by adding "DependsOn" for the dependant resources.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.