是否可以从Jenkins中的TFVARS文件中读取值?

发布于 2025-01-28 14:04:03 字数 189 浏览 3 评论 0原文

我有一些Terraform代码,该代码使用TFVAR的地图将多个Lambdas部署到AWS。一切都很好,除了我想在Jenkins管道中运行脚本,该脚本需要首先从Nexus下载每个LAMDA的Jars。有没有办法在Jenkins管道中阅读TFVARS文件以获取从Nexus下载的罐子的名称,将它们复制到Jenkins上的工作DIR中,然后使用Terraform上传?

I have some terraform code that uses a map of tfvars to deploy multiple lambdas to Aws. it all works fine except I want to run the script in a Jenkins pipeline which would need to download the jars from Nexus first for each lamda. is there a way I can read the tfvars file in the Jenkins pipeline to get the names of the jars to download from Nexus, copy them into the working dir on Jenkins and then upload them using terraform?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文