From f2445b353a5de304dc798740bc1032d300560699 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 30 Mar 2017 16:47:01 -0700 Subject: [PATCH] Add product_area to rds-cluster --- rds-cluster/main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rds-cluster/main.tf b/rds-cluster/main.tf index 97157335..0e20cfef 100644 --- a/rds-cluster/main.tf +++ b/rds-cluster/main.tf @@ -37,6 +37,10 @@ variable "master_username" { description = "The master user username" } +variable "product_area" { + description = "The product area for this cluster" +} + variable "master_password" { description = "The master user password" } @@ -121,6 +125,10 @@ resource "aws_rds_cluster_instance" "cluster_instances" { # need a deterministic identifier or terraform will force a new resource every apply identifier = "${aws_rds_cluster.main.id}-${count.index}" + + tags { + product_area = "${var.product_area}" + } } resource "aws_rds_cluster" "main" {