Terraform has no tagging feature when creating Redshift parameter group

时间:2018-02-26 17:54:25

标签: amazon-web-services amazon-redshift terraform

When creating redshift parameter group using Terraform, tagging is not supported. I do not know why terraform designs this way. https://www.terraform.io/docs/providers/aws/r/redshift_parameter_group.html

I DO need to make redshift parameter group tagged after run "terraform apply". I am thinking maybe I should add tag from null_resource part, maybe using AWS CLI, etc. But I am not sure how to do that. Does anybody have the similar issue and figure out how to make redshift parameter group tagged after "terraform apply"? Thanks.

1 个答案:

答案 0 :(得分:0)

我将以下命令放在null_resource-> local-exec->命令中,它可以工作:

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