When zip file uploaded to Amazon S3, extract all the contents from it and upload them. That's it!
or
$ sam build
$ cd terraform
$ terraform import aws_s3_bucket.shuntagami-demo-data shuntagami-demo-data
$ cd ..
$ make build
$ terraform plan
$ sam deploy
$ cd terraform
$ terraform plan
$ terraform apply
If you modify function, run below
$ make build && cd terraform
$ terraform apply -replace="aws_lambda_function.lambda_s3_to_s3"
$ aws s3 rm s3://shuntagami-demo-data/ --recursive
$ aws cloudformation delete-stack --stack-name lambda-s3-to-s3-demo
$ terraform destroy
MIT