如何在Terraform设置块中本地引用.zip文件,而不是使用URL

如何在Terraform设置块中本地引用.zip文件,而不是使用URL,terraform,Terraform,我在terraform中有一个设置块,现在它引用了一个.zip文件,并使用url字段来引用它。如何在本地引用.zip文件 PS模块位于GitHub中,也可在本地使用 谢谢 代码示例:(设置块来自terraform azure vm扩展) settings=我使用blob存储来实现这一点: "url" = "https://foo.blob.core.windows.net/dsc.zip" <<< get zip from this url and unzip it to a

我在terraform中有一个设置块,现在它引用了一个.zip文件,并使用url字段来引用它。如何在本地引用.zip文件

PS模块位于GitHub中,也可在本地使用

谢谢

代码示例:(设置块来自terraform azure vm扩展)


settings=我使用blob存储来实现这一点:

"url" = "https://foo.blob.core.windows.net/dsc.zip" <<< get zip from this url and unzip it to a special folder on the vm
"script" = "configure.ps1" <<< load this file into memory
"function" = "AzureDscDemo" <<< call this function from inside the file

“url”=“https://foo.blob.core.windows.net/dsc.zip“您能否编辑您的问题,以提供一个更完整的示例,如指南中所示?很难理解你在这里想要达到的目标。对不起,我该如何编辑这个问题?我正在尝试代码未正确粘贴,抱歉单击您帖子下方的
编辑
按钮或找到它。谢谢,我尝试设置格式,但设置阻止在我将其发布到此处后更改格式。。。它在盐酸中(土状)
"url" = "https://foo.blob.core.windows.net/dsc.zip" <<< get zip from this url and unzip it to a special folder on the vm
"script" = "configure.ps1" <<< load this file into memory
"function" = "AzureDscDemo" <<< call this function from inside the file