From 0ff295fc85042fc3b53888084635bfe8c016826d Mon Sep 17 00:00:00 2001 From: Kaushik Chandrashekar Date: Thu, 2 Apr 2020 11:14:34 +0000 Subject: [PATCH] [ch5081] | Kaushik | Add team name to RDS deployment --- bindata.go | 58 ++++++++++++++++++++-------------------- environment_config.go | 2 +- templates/rds-tf/main.tf | 2 ++ 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/bindata.go b/bindata.go index f159534..351ae58 100644 --- a/bindata.go +++ b/bindata.go @@ -111,8 +111,8 @@ func bindataTemplatesAwsrolestfDeploysh() (*asset, error) { name: "templates/aws-roles-tf/deploy.sh", size: 374, md5checksum: "", - mode: os.FileMode(420), - modTime: time.Unix(1584392515, 0), + mode: os.FileMode(436), + modTime: time.Unix(1585549780, 0), } a := &asset{bytes: bytes, info: info} @@ -154,8 +154,8 @@ func bindataTemplatesAwsrolestfMaintf() (*asset, error) { name: "templates/aws-roles-tf/main.tf", size: 735, md5checksum: "", - mode: os.FileMode(420), - modTime: time.Unix(1582736085, 0), + mode: os.FileMode(436), + modTime: time.Unix(1585549780, 0), } a := &asset{bytes: bytes, info: info} @@ -191,8 +191,8 @@ func bindataTemplatesRdstfDeploysh() (*asset, error) { name: "templates/rds-tf/deploy.sh", size: 449, md5checksum: "", - mode: os.FileMode(420), - modTime: time.Unix(1585203532, 0), + mode: os.FileMode(436), + modTime: time.Unix(1585715612, 0), } a := &asset{bytes: bytes, info: info} @@ -201,26 +201,26 @@ func bindataTemplatesRdstfDeploysh() (*asset, error) { } var _bindataTemplatesRdstfMaintf = []byte( - "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x93\xcd\x6e\xdb\x3a\x10\x85\xf7\x7a\x8a\x81\xf7\x92\xef\x45\x17\x05" + - "\x02\x18\x68\xda\xa4\x45\x0a\xb4\x08\xda\xb4\x8b\x6e\x84\x11\x35\x92\x09\xf1\x47\xe1\x90\x71\x12\xc7\xef\x5e\x50" + - "\xb4\x52\x0b\xb6\x13\x17\xe5\xca\x1e\xce\x39\xf3\xcd\x31\xed\xc9\x39\x6c\xac\xd3\xb0\xce\x00\x2a\x14\x1d\x99\x1a" + - "\x66\xfc\x66\x36\x14\x00\xaa\x20\x3a\xf2\x30\x3d\x0b\x98\x19\xbc\x93\x79\x85\xa6\xcb\x9f\x2d\x72\x61\xb5\x46\x53" + - "\xe7\xec\xd1\xd3\x6c\x90\x3b\x6a\xa5\x35\xfb\x72\xec\x73\xb6\xc1\x2f\xf3\xff\x53\x5f\x47\x0f\xb0\x77\x16\x30\x73" + - "\x35\xa7\x86\x95\x75\x1d\xf7\x28\xa8\xec\xe8\xa1\xec\x1d\x35\xf2\x7e\xdb\x90\xe6\xf1\x7c\xbd\x86\xe2\xf2\xde\x3b" + - "\xfc\x46\x6c\x83\x13\xc4\xc5\x05\x7a\xac\x90\xa9\xb8\x32\xec\xd1\x08\xfa\x8a\x9a\x60\xb3\x49\x9e\xbd\xb3\x8d\x54" + - "\xb4\x37\x54\xe8\x3a\x35\xa0\x50\x07\xa9\x52\x28\xb9\x5d\x19\x72\x79\x13\x94\xca\x85\x35\xde\x59\x15\x65\x9b\x6c" + - "\x93\x65\xda\xd6\x41\x51\xe2\x1f\x92\x4c\x44\x3b\x1e\xad\xf4\x67\x67\xcc\xcb\xb3\xf9\xbc\x95\xfe\x5d\x2b\xfd\x32" + - "\x54\x85\xd0\x75\x31\x44\xeb\x49\x2c\x0b\x69\xe6\xc3\x17\x69\x1a\x87\x73\x57\x73\xd1\x4a\x1f\x67\x90\xb9\x93\xce" + - "\x1a\x4d\xc6\x0f\x6e\x07\x56\xbf\xdc\x69\x79\x82\xdb\x60\x7d\x5c\x3c\x03\x90\xdb\x28\x4a\x13\xb3\x38\xa8\x3d\x1c" + - "\xdb\xc4\xa5\x47\xe6\x95\x75\xf5\xb8\xcf\x4b\x2e\xd7\x63\xef\xc4\x81\xe5\x23\xed\xa6\xfa\x92\xc3\x77\xf9\x48\x57" + - "\xe6\x53\x95\x94\x81\xc9\x9d\xaa\xfc\x11\x7b\x77\xe6\x66\x00\xf5\xf6\x8e\x4f\x90\x5f\x54\x71\x75\x86\x27\xd0\x81" + - "\xfd\x8d\xfd\xcc\xd6\x24\x88\xd1\xa5\xf4\xd8\x72\x74\xc9\x12\xce\x0d\xa1\xde\x9a\xc6\x8f\xc5\x7e\x74\x03\xc4\x7a" + - "\x9d\x83\x6c\x8e\x0f\x3e\x5f\xf1\x18\xfe\x07\x85\xcc\x49\x8a\x2b\x2e\x9f\x7f\x3f\x31\xd4\x5f\xe6\xdf\xb3\x99\x90" + - "\x44\x88\xf8\x7f\xdf\x9c\x84\xf4\x1e\x45\x17\xfa\x0b\xc9\x58\x29\xaa\x93\x43\x35\xd4\x4a\x47\x9e\x8c\x97\xd6\x94" + - "\x3d\x39\x69\x6b\x58\xc0\x7f\xa3\xbf\x62\x7a\xad\xf7\xed\x31\x16\x63\xfd\x71\x9e\x2f\x41\x79\x79\xfe\x6b\x0a\xa4" + - "\x63\xb1\xc4\x47\x58\x80\x77\x81\xfe\x7a\xc9\x6b\xbe\x55\x1f\x51\x4b\xf5\xb0\x7d\xe7\x7c\xab\xca\x26\x15\x5e\x79" + - "\xe5\x7f\x94\xff\x10\x72\x74\xb9\x34\xad\x34\xf4\x93\x1c\xcb\xf1\xb5\x0d\x18\x34\xd4\xcb\xbb\xed\xc5\xeb\x38\x53" + - "\xa3\xa3\x54\x9b\xec\x77\x00\x00\x00\xff\xff\x57\xd3\xf8\xf1\x07\x06\x00\x00") + "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x94\x41\x6f\xd3\x4e\x10\xc5\xef\xfe\x14\xa3\xdc\xed\xfc\xff\xe2\x80" + + "\x54\x29\x12\x85\x16\x54\x24\x50\x05\x85\x03\x17\x6b\xbc\x1e\x3b\x2b\xaf\x77\xdd\x9d\xd9\xa6\x6d\x9a\xef\x8e\xd6" + + "\x9b\x94\x44\x49\x9a\x22\x7c\x4a\xc6\xef\xfd\xf6\xcd\x73\x1c\x21\xef\xb1\x71\xbe\x87\x65\x06\x50\xa1\xea\xc8\xd6" + + "\x30\xe1\x37\x93\x71\x00\x50\x05\xd5\x91\xc0\xee\x35\x83\x89\xc5\x3b\x9d\x57\x68\xbb\xfc\x19\x91\x2b\xd7\xf7\x68" + + "\xeb\x9c\x05\x85\x26\xa3\xdd\x53\xab\x9d\xdd\xb7\xe3\x90\xb3\x0b\x32\xcf\xff\x4f\xba\x8e\x1e\x60\xef\x9a\xc1\xc4" + + "\xd7\x9c\x04\x0b\xe7\x3b\x1e\x50\x51\xd9\xd1\x43\x39\x78\x6a\xf4\xfd\x5a\x90\xce\xe3\xe9\x72\x09\xc5\xe5\xbd\x78" + + "\xfc\x46\xec\x82\x57\xc4\xc5\x05\x0a\x56\xc8\x54\x5c\x59\x16\xb4\x8a\xbe\x62\x4f\xb0\x5a\x25\xe6\xe0\x5d\xa3\x0d" + + "\xed\x1d\xaa\xfa\x3a\x09\x50\x99\x83\xa9\x52\x29\xb9\x5b\x58\xf2\x79\x13\x8c\xc9\x95\xb3\xe2\x9d\x89\xb6\x55\xb6" + + "\xca\xb2\xde\xd5\xc1\x50\xca\x3f\x36\x99\x12\x6d\x31\x5a\x2d\x67\x67\xcc\xf3\xb3\xe9\xb4\xd5\xf2\xae\xd5\x32\x0f" + + "\x55\xa1\xfa\xba\x18\xab\x15\x52\xf3\x42\xdb\xe9\xf8\x45\xdb\xc6\xe3\xd4\xd7\x5c\xb4\x5a\xe2\x19\x64\xef\xb4\x77" + + "\xb6\x27\x2b\x23\xed\xc0\xea\x97\x5b\x92\x27\xb8\x0d\x4e\xe2\xe2\x19\x80\x5e\x57\x51\xda\xd8\xc5\x41\xef\xe1\xda" + + "\x76\x28\x03\x32\x2f\x9c\xaf\x37\xfb\xbc\x44\xb9\xde\x68\x77\x08\xac\x1f\x69\xbb\xd5\x97\x08\xdf\xf5\x23\x5d\xd9" + + "\x4f\x55\x72\x06\x26\xff\x5a\xe7\x8f\xa8\xdd\x3a\x37\x03\xa8\xd7\xf7\xf8\x15\xf6\x8b\x2a\xae\xce\xf0\x04\x7d\x60" + + "\xb9\x71\x9f\xd9\xd9\x14\x62\x43\x29\x05\x5b\x8e\x94\x2c\xc5\xb9\x21\xec\xd7\xd0\xf8\xb1\xd8\xaf\x6e\x0c\x21\x27" + + "\x64\x19\xc0\x72\x99\x83\x6e\x8e\x67\x3b\x5f\xf0\xe6\xf9\x7c\x30\xc8\x9c\xe8\xb8\xe0\xf2\xf9\x11\xab\x71\xfe\xf2" + + "\x8a\x7b\x98\x9d\xb0\x31\x44\xfc\x4b\x78\x5d\xa4\xf7\xa8\xba\x30\x5c\x68\xc6\xca\x50\x9d\x08\xd5\x38\x2b\x3d\x09" + + "\x59\xd1\xce\x96\x03\x79\xed\x6a\x98\xc1\x7f\x1b\xbe\x61\x3a\xa5\x7d\x7b\x2c\x8b\x75\x72\x3c\xcf\x97\x60\x44\x9f" + + "\xff\xda\x0d\xd4\xc7\x61\x89\x8f\x30\x03\xf1\x81\xfe\x7a\xc9\x6b\xbe\x35\x1f\xb1\xd7\xe6\x61\xfd\x2a\xf0\xad\x29" + + "\x9b\x34\x38\xf1\x22\xfc\x71\xfe\x43\xc9\x91\x72\x69\x5b\x6d\xe9\x27\x79\xd6\x9b\x1f\xe4\x18\x83\xc6\x79\x79\xb7" + + "\xbe\x71\x3a\xce\x2e\xe8\x68\xaa\x55\xf6\x3b\x00\x00\xff\xff\xf1\x7c\xe4\x55\x2a\x06\x00\x00") func bindataTemplatesRdstfMaintfBytes() ([]byte, error) { return bindataRead( @@ -239,10 +239,10 @@ func bindataTemplatesRdstfMaintf() (*asset, error) { info := bindataFileInfo{ name: "templates/rds-tf/main.tf", - size: 1543, + size: 1578, md5checksum: "", - mode: os.FileMode(420), - modTime: time.Unix(1585216252, 0), + mode: os.FileMode(436), + modTime: time.Unix(1585825744, 0), } a := &asset{bytes: bytes, info: info} diff --git a/environment_config.go b/environment_config.go index 465aba7..724731b 100644 --- a/environment_config.go +++ b/environment_config.go @@ -14,7 +14,7 @@ var storageBackendBucketMap = map[string]string{ "cmd": "navi-bank-terraform-command-state", "dev": "navi-bank-terraform-nonprod-state", "qa": "navi-bank-terraform-nonprod-state", - "automation": "navi-bank-terraform-nonprod-state", + "automation": "navi-bank-terraform-nonprod-state", "spike": "navi-bank-terraform-nonprod-state", } diff --git a/templates/rds-tf/main.tf b/templates/rds-tf/main.tf index 12f4734..683c5ee 100644 --- a/templates/rds-tf/main.tf +++ b/templates/rds-tf/main.tf @@ -22,6 +22,8 @@ module "rds" { Team = {{ .Team.Name | quote }} } + team = {{ .Team.Name | quote }} + {{- if .ExtraResources.Database.AwsInstanceClass }} aws_instance_class = {{ .ExtraResources.Database.AwsInstanceClass | quote }} {{- end }}