腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
terraform
如何确定何时下载
模块
?
terraform
、
terraform-modules
我想使用
terraform
的EKS
模块
。我想要实现的是,如果
模块
已经存在于本地,
terraform
不会下载它。我使用
terraform
变量TF_DATA_DIR来设置
terraform
的数据目录。export TF_DATA_DIR="${SOME_DIR}/.
terraform
" 当我运行
terraform
init时,EKS
模块
仍然从注册表中拉出,即使该
模块
存在于本地。当我第二次运行
浏览 25
提问于2021-10-29
得票数 0
回答已采纳
1
回答
Terraform
模块
-从根识别子
模块
变量
amazon-web-services
、
terraform
core/main.tf高级概述是,我试图使用TF在AWS中创建VPC,使用
terraform
-aws
模块
,所以我的根
模块
调用了调用
terraform
提供的vpcvar.vpc_facts.cidr我在
terraform
/
terraform
.tfvars中定义了这些值,我希望这些值将传递到
模块
中。/core/"我正在尝试从我的根目录
terraform</
浏览 1
提问于2021-04-19
得票数 3
回答已采纳
2
回答
Terraform
:".
terraform
.lock.hcl“是否锁定每个
terraform
模块
的版本?
terraform
、
terraform-modules
我使用
terraform
提供一个web应用程序项目,其中包括RDS、Memcached、Redis、EC2、负载均衡器和S3桶。为了简化代码,我导入了几个方便的
terraform
模块
,例如: 这是内容。provider "registry.
terraform
.io/
浏览 26
提问于2022-03-21
得票数 1
回答已采纳
4
回答
如何安装多个或两个版本的
Terraform
?
terraform
、
terraform-provider-gcp
我有很多
Terraform
模块
用
Terraform
0.11编写,使用gcp-
Terraform
的提供者,并希望升级到
Terraform
0.12。为此,我需要将两个版本都安装在我的系统上,并根据
模块
编写的版本使用该版本。我将在每个
模块
中逐个进行升级,并使用
terraform
0.12upgrade升级该
模块
,以便按照与
Terraform
0.12兼容。 如何安全地将两个版本的
Terraform
保存
浏览 7
提问于2020-02-07
得票数 17
回答已采纳
1
回答
如何在
terraform
中创建“模拟”
模块
?
terraform
、
terraform-provider-gcp
我试图使用以下项目结构编写具有角色分离的干净的
terraform
配置: ┣ modules ┃ ┃ ┣ generic_sa_impersonation.tf第一步--而不使用
模块
:我能够使用Service account impersonation 创建上述基础设施。执行
terraform
apply后,将更新GCP上的基础设施状态。这里没问题。这里的目标是这个
模块
将生成一个访问令牌,时间设置为秒数。iam.se
浏览 19
提问于2022-05-10
得票数 0
回答已采纳
1
回答
Terragrunt路径解析-局部引用
模块
-分裂成多个环境
amazon-web-services
、
terraform
、
terragrunt
/
terraform
-aws-*/中声明的子
模块
。其中,根
模块
正在实例化在
terraform
-modules/
terraform
-aws-*/中声明的子
模块
。(
terraform
)命令,但是由于我使用的是本地(相对)路径,这在
模块
初始化过程中失败,因为根
模块
my_module用以下相对路径加载子
模块
: source/
t
浏览 4
提问于2020-08-31
得票数 2
3
回答
指定
模块
时
terraform
init不起作用
terraform
、
terraform-provider-aws
我刚接触
terraform
,正在尝试解决我在测试
模块
时遇到的一个小问题。 bucket = "first-
terraform
-bucket" force_destroy = true下面是来自main_code级别引用存储
模块
的代码片段
浏览 1
提问于2019-02-12
得票数 4
1
回答
Terraform
-错误加载
模块
-没有这样的文件或目录(文件夹重命名后)
amazon-web-services
、
terraform
)└──
terraform
.tfstate.backup##resources.tf module "iam" {} 这很简单,在我重命名
模块
的文件夹 name之前,一切都很好。
terraform
init的输出(
模块</
浏览 5
提问于2019-11-14
得票数 1
回答已采纳
1
回答
terraform
aws提供程序:在子
模块
中添加默认标记
terraform
、
terraform-provider-aws
我在根
模块
default_tags中使用
terraform
提供者my_
terraform
块。该
模块
有一个名为my_submodule的子
模块
,我希望在该子
模块
中有额外的默认标记。我在my_
terraform
/my_submodule/main.tf上试过这个 default_tags { "extra_tag" = "some
浏览 11
提问于2022-03-01
得票数 1
1
回答
我应该对.
terraform
文件夹进行版本吗?
terraform
我开始使用
Terraform
,我有一个由"
terraform
/apply“创建的.
terraform
文件夹,包含: 我应该给这
浏览 3
提问于2019-12-11
得票数 9
回答已采纳
5
回答
未找到
terraform
kubectl提供程序
kubernetes
、
terraform
、
kubectl
、
terraform-provider-gcp
我正在尝试为
terraform
模块
添加kubectl提供程序,并且我遵循了的文档。
terraform
init (在
模块
k8s中配置了资源)时registry.
terraform
.io does not have a provider named registry.
terraform
.io
浏览 6
提问于2020-10-20
得票数 8
1
回答
Terraform
-如何使用多个
模块
创建临时资源
terraform
我已经创建了两个
Terraform
模块
,每个
模块
创建一个简单的AWS实例,然后在其上提供一些带有Ansible剧本的软件。当在
模块
目录中运行
terraform
时,每个
模块
都能正常工作。如何将这两个
模块
组合在一个shell脚本中,以创建两个实例,运行一些测试,然后销毁资源。在我看来,shell脚本应该是这样的:
terraf
浏览 0
提问于2018-11-15
得票数 2
1
回答
Terraform
version.tf
terraform
、
provider
你好,我使用的是
terraform
的v13版本,自从这个版本发布以来,我们被迫使用required_providers块通过version.tf系统。我有一个调用子
模块
terraform
的main.tf脚本。如下所示 module "wab_device" { source = ".初始化,我遇到了下面的问题 错误:无法安装提供程序 安装hashicorp/wab时出错:提供程序注册表registry.
terraform
.io没有名为registry.
浏览 28
提问于2021-01-21
得票数 1
1
回答
有没有一种方法可以检查同一个项目中的另一个
terraform
模块
是否存在一个
terraform
模块
,并设置一个变量来检查它呢?
terraform
在我的一些项目中,我将包括一个名为gabrielle的
terraform
模块
。在某些项目中,我将不包括
terraform
模块
gabrielle。我有另一个名为s3-bucket的
terraform
模块
,它将驻留在gabrielle
模块
也可以使用的同一个项目中。我希望将s3-bucket
terraform
模块
中的变量设置为true或false,具体取决于gabrielle
模块
是否也在同一个项目中(如果存在,则为tru
浏览 3
提问于2022-04-28
得票数 0
7
回答
github私有回购中的
Terraform
模块
git
、
github
、
terraform
我正在尝试使用我的私人git作为
terraform
模块
的源代码。 ssh公钥已复制到github。如果需要
Terraform
从私有GitHub repos中获取
模块
,则必须向
Terraform
提供凭据,以便作为具有读访问这些GitHub的用户进行身份验证。如果只在本地机器上运行
Terraform
,则可以将
模块
源指定为SSH URI (如git@github.com:hashicorp/example.git),
Terraform
将使用默认的S
浏览 10
提问于2020-04-08
得票数 15
1
回答
无法从
terraform
注册表下载
模块
git
、
kubernetes
、
google-cloud-platform
、
terraform-provider-gcp
我使用
terraform
deafult
模块
https://registry.
terraform
.io/modules/
terraform
-google-modules/kubernetes-engine/google/latest来自动化gke集群,但我得到了以下错误 错误:无法下载
模块
,无法从"github.com/
terraform
-google-modules/
terraf
浏览 36
提问于2021-08-05
得票数 0
1
回答
如何创建
Terraform
子
模块
amazon-web-services
、
terraform
、
terraform-provider-aws
、
terraform-modules
我使用
terraform
来管理AWS资源,我有一个
模块
,它的源是整个
terraform
文件夹,但是现在我想在这个
模块
下为A.tf和B.tf文件创建一个子
模块
,这样当我应用
Terraform
时,如果我指定这个子
模块
,
Terraform
就不必创建这个子
模块
之外的所有资源。
浏览 4
提问于2021-03-30
得票数 1
回答已采纳
1
回答
组件的
Terraform
远程状态配置
amazon-web-services
、
amazon-s3
、
terraform
Terraform
v0.10.7
Terraform
- module-1 (main.tf, vars.tf, outputs.tf, backend.tf) - module当我为任何环境提供
terraform
get和
terrafor
浏览 1
提问于2017-10-06
得票数 0
1
回答
在Windows上手动删除.
terraform
文件夹后,无法运行
terraform
init
terraform
我遇到了
terraform
init和terrafor get的问题。我想让
terraform
新下载我的
模块
,所以我删除了.
terraform
文件夹。但是当我尝试
terraform
init时,它总是给我这样的结果: 下载
模块
时出错:加载
模块
时出错:下载‘ssh://git@mygitaddr’时出错: C:\cygwin64\bin\git.exe退出时返回128: fatal:无法创建工作树目录'.
terraform
\
浏览 6
提问于2017-12-09
得票数 0
回答已采纳
1
回答
如何在
terraform
的另一个文件中引用在一个文件中创建的资源
terraform
terraform
/env/res/main.tf: resource "aws_security_group" "allow_all" { to_port = 0 cidr_blocks = ["0.0.0.0/0"]}
terraform
浏览 83
提问于2019-01-22
得票数 10
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Terraform Plugin Framework现已正式发布
Terraform Labs法务团队已离职
为什么 Terraform 可以用于多云迁移?
使用 Terraform 来管理 OpenStack 集群|Linux 中国
Terraform Labs称将不会参与Mint Cash
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券