-
2 votesanswersviews
模块中的Terraform提供程序/变量共享
有没有一种方法可以为项目中定义的所有模块提取提供程序 . 例如,我有这个项目 ├── modules │ ├── RDS │ └── VPC └── stacks ├── production │ └── main.tf └── staging └── main.tf 它工作得很好......问题在于模块的定义 ├── RDS │ ├── ... -
0 votesanswersviews
我如何在不同环境中共享Terragrunt中的一些基础设施
我是terraform / terragrunt的新手,我们正在使用terragrunt来管理我们的基础设施 . 场景是我正在尝试创建这样的基础: APIGateway - Resource - Method - Authorizer(Lambda) - Stage(Deployment) - Backend 对于不同的环境(测试,升级,产品)我想分享相同的 APIGateway , Resou... -
0 votesanswersviews
有没有办法合并terraform变量以跨多个AWS区域使用相同的模块?
我是terraform的新手,我正在利用terragrunt来帮助我实现目标 . 我有相当数量的基础设施可以迁移和设置w / terraform,但我首先得到了我的脚 . 我们在不同地区有多个VPC,并且使用了很多相同的安全组规则,即(web,db等),我想在每个区域复制 . 我有一个简单的例子,说明我目前如何设置EC2模块以重新创建安全组规则,并且想知道是否有更好的方法来组织此代码,因此我不必为... -
0 votesanswersviews
要求使用terragrunt输入在terraform模块中设置的变量的值
我有一个具有以下结构的terragrunt项目: |---terraform.tfvars |---account | |---us-east-1 | |---nonprod | |---s3 | |---terraform.tfvars |---modules | |---s3 | |---main.tf |---s... -
0 votesanswersviews
terragrunt-infrastructure-live-example变量未设置
我正在尝试使用terragrunt-infrastructure-live-example实现一个terragrunt基础设施:https://github.com/gruntwork-io/terragrunt-infrastructure-live-example . 我基本上遵循了程序,但我不明白为什么terragrunt在尝试计划时要求我输入变量: ~/workspace/terragru... -
1 votesanswersviews
Terraform应用巨大的索引值,例如EBS块存储
我正在使用Terraform(通过Terragrunt调用,如果相关的话)从AMI创建实例并挂载现有卷: resource "aws_instance" "jenkins_master_with_snap" { count = "${var.master_with_snapshot}" ... -
2 votesanswersviews
Terragrunt v0.14.9,Terraform v0.11.7从第二环境读取AWS VPC ID
我使用Terragrunt来编排非默认AWS VPC的创建 . 我've got S3/DynamoDB state mgmt, and the VPC code is a module. I have the ' VPC环境' terraform.tfvars 代码根据 terragrunt README.md检入第二个回购 . 我创建了第二个模块,最终将在此VPC中创建主机,但现在只是为了输...