这是我的terraform TF文件的片段
// main "parent" module
// a list of email addresses for alert emails
variable "alertees" {
type = list(string)
}
我想通过数据"terraform_remote_state“向其他模块公开这个属性。
例如,在子文件夹中,我希望能够重用上面的属性,如下所示
// module in subfolder
data "terraform_remote_state" "paren
我有集群的terraform代码,它在一个月前就开始工作了,但是今天我正在尝试它,它现在出现了错误。
Error: googleapi: Error 400: Alias IP addresses are required for private cluster, please make sure you enable alias IPs when creating a cluster., badRequest
on modules/gke-cluster/main.tf line 20, in resource "google_container_cluster"
我使用terraform将Azure PostgresSQL灵活服务器部署为PAAS,运行良好。现在,我希望创建不同的角色,并使用terraform为数据库分配不同的特权。但这就提高了下面提到的误差。请看一看,并建议我适当的地形配置和所需的供应商为解决方案。
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider hashicorp/postgresql: provider registry registry.terraf
我们在Terraform中配置的GCP中有一个监控警报策略。我们还想使用Terraform创建一个文档。
我们在GCP中使用以下命令创建文档。
gcloud alpha monitoring policies update projects/project_name/alertPolicies/5861347861929375791 \
--documentation-format="text/markdown" \
--documentation="API has exceeded its quota limit. The systems load has incre
我想写一个将创建dynamoDb表的terraform模块。这些属性应该从.tfvars或默认变量中读取,而不是像资源指南中那样已经在.tf中命名
为了进一步解释,假设使用属性列表来实现此伪代码:
resource "aws_dynamodb_table" "basic-dynamodb-table" {
name = "GameScores"
... #Other required feilds
...
...
# attributes is a list of names
for(attribute_name:${length(var
我从GitHub工作流中调用了Terraform,其中一个步骤是RDS更新。状态的后端是一个S3桶。Terraform正确地反映了更新的状态(参见下面的日志),但是对RDS数据库实例的更改根本没有反映出来。
下面是地形应用操作的输出-
我还注意到状态文件没有更新回S3。有趣的是,如果我更改实例的名称,它会强制破坏和重新创建,terraform会按照预期完成它的工作。
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with