aws-samples / public-file-browser-for-amazon-s3

Sample code to deploy a website and a "public files" S3 bucket which can be loaded with any files an administrator wishes to publish publicly online.
MIT No Attribution
104 stars 17 forks source link

SeedS3Data CFN resource takes 40+ mins (unresolved) #5

Closed troydieter closed 6 months ago

troydieter commented 7 months ago

Hi-

I'm seeing the SeedS3Data resource fail to deploy, as it's 40+ minutes:

image
ckabalan commented 7 months ago

Take a look at the recent CloudWatch Logs for the CustomSeedS3Data Lambda function (in that screenshot). If you can share those here I can take a deeper look. In short this function should complete within ~10sec and just copies the website code into the deployed bucket. I suspect there was a race condition or some other error, maybe an edge case with your input parameters. Either way I'd like to take a look and improve the code.

troydieter commented 6 months ago

My apologies @ckabalan - I totally overlooked the ./sam/DEPLOYMENT.md file and didn't build the SAM project first. As you can see where this is going.. the function was faulting on the ability to import the crhelper.

TL;DR: Read the docs, and it worked!