Quick question for anyone that is using AWS SAM to deploy their microservices in AWS. Do you include your .aws-sam files into your repositories? Or do you gitignore this directory and sub directories?
No, you should not revision control the .aws-sam folder or its subfolders.
Add them to .gitignore, for example as follows:
# SAM default build folder
.aws-sam/
These folders contain intermediate and output files and will, for example, include Python packages, Node modules and other undesirables. None of these should be committed.
You don't need to include the .aws-sam directory in your repository.
The content of this directory are the artifacts outputted from your sam build command, and can always be recreated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With