我应该在我的存储库中包含我的 .aws-sam 文件吗? [英] Should I include my .aws-sam file in my repository?

查看:45
本文介绍了我应该在我的存储库中包含我的 .aws-sam 文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

针对使用 AWS SAM 在 AWS 中部署微服务的任何人的快速问题.您是否将 .aws-sam 文件包含在您的存储库中?还是gitignore这个目录和子目录?

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?

推荐答案

不,您不应修订控制 .aws-sam 文件夹.将它们添加到 .gitignore.

No, you should not revision control the .aws-sam folder(s). Add them to .gitignore.

这些文件夹包含中间文件和输出文件,例如,将包含 Python 包、Node 模块和其他不需要的文件.这些都不应该被提交.

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.

这篇关于我应该在我的存储库中包含我的 .aws-sam 文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆