I am building my Cloudformation template to create an S3 Bucket.
I wanted to create folders in the bucket at the same time but I have read that I need to use a lambda backed resource.
So I've prepared the lambda part of my template but I need to add a condition :
If the lambda refers to a bucket which already exists
The bucket already exists and it has been created in this ( everything has to reside in one cloudformation stack) file
Call the lambda to create my folders.
I do not want to check if my bucket exists in S3 or if my folders already exist as S3 objects in the bucket.
I would like the lambda backed resource to be created after the bucket has been created.