Closed ammar-khan closed 1 year ago
Hi Ammar, thanks for opening an issue.
The witch.js
file defines a AWS CloudFormation Custom resource handler. This handler is executed when deploying the cloudformation template. The purpose of the custom resource is to upload the contents of the static site to the S3 Bucket.
Without this custom resource, the S3 bucket be empty when the CloudFormation template is deployed. The user would need to upload the static site to the S3 bucket manually.
The function traverses the /www
directory and uploads each file to the S3 bucket specified. I don't have a python equivalent of this custom resource.
Thanks @ConnorKirk
Really appreciate your timely and helpful response
Great resource and very helpful contributions by you all
Why is it called witch
? :mage_woman: Is it an acronym or something, or is it just for fun?
@stilvoid has the authoritative answer
It stands for:
Website in the cloud. Help
Appreciate the amazing example shared by the community and contributors
I need to ask a question about witch file which is used as lambda, but I am not able to get the purpose and why this file is required?
Also do you have a python alternate of this file?
Thanks