目前我正在 shell 命令下运行
@if [ -x "$$(command -v terraform)" ]; then \
echo "==> Checking terraform formatting of files"; \
(terraform validate ./test && echo "Terraform format check passed successfully") \
|| (echo "validation failed" && exit 1); \
else \
echo "No terraform command found"; \
exit 1; \
fi
Run Code Online (Sandbox Code Playgroud)
在这里我不想初始化后端,但它似乎这样做了,我也看到错误为
? on test/policy.tf line 320:
? 320: module "service_admin_policy" {
?
? This module is not yet installed. Run "terraform init" to install all
? modules required by …Run Code Online (Sandbox Code Playgroud)