Terraform 在创建 Redshift 参数组时没有标记功能
Terraform has no tagging feature when creating Redshift parameter group
使用 Terraform 创建 redshift 参数组时,不支持标记。我不知道为什么 Terraform 会这样设计。
https://www.terraform.io/docs/providers/aws/r/redshift_parameter_group.html
我确实需要在 运行 "terraform apply" 之后标记 redshift 参数组。我在想也许我应该从 null_resource 部分添加标签,也许使用 AWS CLI 等。但我不确定该怎么做。有没有人有类似的问题并弄清楚如何在 "terraform apply" 之后标记红移参数组?谢谢
我在 null_resource->local-exec->command 中输入以下命令,它起作用了:
aws redshift create-tags --resource-name arn:aws:redshift:<region>:<account_id>:parametergroup:<parameter_group_name> --tags Key=XX,Value=XXX Key=XXXX,Value=XXXXX
使用 Terraform 创建 redshift 参数组时,不支持标记。我不知道为什么 Terraform 会这样设计。 https://www.terraform.io/docs/providers/aws/r/redshift_parameter_group.html
我确实需要在 运行 "terraform apply" 之后标记 redshift 参数组。我在想也许我应该从 null_resource 部分添加标签,也许使用 AWS CLI 等。但我不确定该怎么做。有没有人有类似的问题并弄清楚如何在 "terraform apply" 之后标记红移参数组?谢谢
我在 null_resource->local-exec->command 中输入以下命令,它起作用了:
aws redshift create-tags --resource-name arn:aws:redshift:<region>:<account_id>:parametergroup:<parameter_group_name> --tags Key=XX,Value=XXX Key=XXXX,Value=XXXXX