INFRA-433 | Abhishek | Add changes to handle rds_alert_threshold field not present
This commit is contained in:
@@ -233,7 +233,7 @@ func bindataTemplatesRdstfDeploySh() (*asset, error) {
|
|||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _bindataTemplatesRdstfMainTf = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x97\xdf\x6f\xe2\x38\x10\xc7\xdf\xf3\x57\x58\x7d\x0f\xdd\xd3\xe9\x74\x52\xa5\x4a\xd7\x96\xee\xa9\xa7\xdd\x53\xaf\xed\xde\x49\xf7\x62\x39\xce\x10\x2c\x1c\x3b\xf5\x4c\x4a\x29\xcb\xff\xbe\x72\x1c\x20\x81\xf0\x9b\xe5\x09\xbe\x9e\xf9\xfa\xe3\x61\xc6\x01\x02\xe7\xc4\xc0\xba\x9c\x4d\x23\xc6\x12\x21\x47\x60\x52\x76\x81\xbf\x5e\x54\x02\x63\x49\x29\x47\x40\xac\xfd\xba\x66\x17\x46\xbc\xa9\x38\x11\x66\x14\x2f\x2c\x62\x69\xf3\x5c\x98\x34\x46\x12\x04\x17\x55\xba\x83\x4c\x59\xb3\x9e\x2e\x8a\x18\x6d\x49\xc3\xf8\x97\x10\x37\x82\x09\x5b\x7b\x5d\xb3\x0b\x97\x62\x08\x18\x5b\x37\xc2\x42\x48\xe0\x23\x98\xf0\xc2\xc1\x40\xbd\xd7\x01\x61\x3f\xbc\x9c\x4e\x59\xef\xfe\x9d\x9c\x78\x02\xb4\xa5\x93\x80\xbd\xbe\x20\x91\x08\x84\xde\x83\x41\x12\x46\xc2\xdf\x22\x07\x36\x9b\x05\xcf\xc2\xd9\x81\xd2\xb0\xb6\xa9\xcc\xd3\x10\x20\xa4\xee\xa4\x0a\x45\x89\xed\xd8\x80\x8b\x07\xa5\xd6\xb1\xb4\x86\x9c\xd5\x3e\x6d\x16\xcd\xa2\x28\xb7\x69\xa9\x21\xf0\x57\x95\x0c\x44\x0d\x8f\x4c\xd1\xd5\x15\xe2\xf0\xea\xf2\x32\x53\xf4\x47\xa6\x68\x58\x26\x3d\x99\xa7\xbd\xaa\xb4\x04\x72\xd8\x53\xe6\xb2\xfa\xa0\xcc\xc0\x89\x4b\x97\x62\x2f\x53\xe4\xf7\x00\xf3\xa6\x9c\x35\x39\x18\xaa\xdc\x3a\x8e\x7e\xdf\x08\xf9\xce\x5e\x4b\x4b\xfe\xe0\x11\x63\xaa\x2e\x05\x37\xbe\x16\x9d\xb9\xdd\x65\x6b\xb9\x14\x02\x71\x6c\x5d\x3a\x3f\xcf\x36\x97\xc7\x79\x6c\xcb\xa1\x44\x70\xcd\xaa\x6e\x73\xf8\xe6\x63\x5b\xd9\x15\xfc\x4a\x76\x1f\x0a\x6d\x27\xfe\xc4\xbd\x55\xe0\x88\xb1\xdc\x1a\x45\xd6\x29\x93\xf1\x43\xe0\xbf\x2e\xd2\xba\x8f\xd1\xb0\x5d\x9e\x68\x5f\xcb\xd5\x73\x45\x8c\xa5\x75\x14\xee\x61\xd4\x4f\xfc\x39\x91\x7d\x67\x79\x89\xf4\x62\xff\x42\x6b\x02\xd5\xdc\x85\x93\xc8\xd0\xbb\x44\x01\xec\x05\x44\x5e\x9b\xfa\xb7\x6b\x75\x0a\x51\x39\xa4\x4a\xaa\x58\x14\x85\xef\xd4\xae\xd2\xce\x66\x71\x87\xfc\x5c\x0e\xfc\x58\xce\xe7\x6b\x61\x54\x0d\xca\xde\xdb\x36\x9b\xfb\xb0\xd6\xae\x0a\x48\x3b\x8e\x18\x31\x36\x9d\xc6\x4c\x0d\x36\xd7\xf5\x59\x7d\xc0\x83\xf9\x33\x09\xae\xa8\x3e\x76\xcd\x49\x3b\xc1\xdb\x83\x46\x68\xa5\xff\xf6\x69\xbe\x62\xd2\x3d\x31\xfa\xc9\xfd\x3b\x81\x41\x65\x0d\xd6\x5f\x6b\xc2\x61\x29\xed\x6a\x8e\x46\xf6\x7a\x87\x1c\x86\xf2\x04\x22\xb5\x46\x4f\xaa\x86\xad\xf2\x5d\xad\x84\xae\xdf\x8e\xd2\xca\xfe\x89\x28\x8b\xb9\xde\x0f\xa7\x31\xd0\xa7\x21\x3d\x82\xf3\x0f\x40\x7f\x53\x3e\x18\x54\xd9\x90\xf0\xde\x88\x44\x43\x5a\x5f\x96\xcb\x75\xae\xea\x00\x0e\x75\xc4\x8e\xbb\x73\xb3\xf5\xa9\xd4\x37\x63\x9c\xdf\xef\x77\x5a\x60\xdd\x62\x62\x8c\x7c\xf1\x88\x90\x95\xbe\x9d\x70\xcd\xa6\x35\x92\x87\x21\xdd\x0a\x39\x2a\x8b\xbe\xc2\x46\xf1\x92\x4a\xe3\x0e\x08\x0c\x29\x6b\x78\x01\x4e\x59\x5f\xb7\x4f\x6b\xb3\xb6\x39\xf6\xf7\x4d\x2c\xc6\xd2\x96\x9b\xba\xd4\xa4\x6e\xfe\x6f\x03\xe5\x5e\xe4\xe2\x83\x5d\x33\x72\x25\x1c\xde\x2d\xf8\xaa\x3f\x8b\x5c\xe9\x49\xdd\x1d\xf8\xaa\xf9\x20\x08\x3b\x9a\x61\x99\x79\x42\x91\xbd\xcb\xbd\xc9\x94\x81\x7f\xc1\xf9\xeb\xa1\x81\x01\x95\xce\xdf\xea\x85\xdd\x38\x6d\xa3\x13\xa8\xfc\x50\x3e\x41\xa1\x95\x14\xcb\xa9\xe6\x2e\x28\xab\x1d\xb9\xc7\x80\xd7\x5e\x5d\xed\xb9\x3a\x36\xad\x9d\x4e\x98\xd5\xe6\xb6\x3f\x73\x6e\x8b\x42\x4f\x1e\x72\xff\xb4\x14\x04\xf3\x2e\x12\x5e\xe5\xaa\x21\xef\x18\xdb\x55\x97\x23\xb1\x9e\x52\xbc\xd1\xe0\xe8\x65\xe8\x00\x87\x56\xa7\xd8\xbb\x2b\xca\x6f\xa4\xb4\xfa\x10\xb4\xe8\x2e\x59\x94\xbc\x5c\x8a\x5c\x68\xe1\x72\x4e\xf3\xa4\x6e\xd8\xdd\xde\x1b\x1a\x8e\xb1\x83\x89\xef\x1c\xa4\x8a\x6e\x85\xf6\x5f\xd9\x82\x59\x56\x2a\x4f\x82\x7c\x0a\x75\xdb\xff\xf0\x41\xe9\x70\xbd\x2d\x1d\xb6\x89\x13\xaf\x9c\x4c\xdb\xf2\x3d\x0b\x69\xff\xf6\xce\x1a\x03\x92\x5a\x3f\x65\xe4\x52\x3b\x9a\xb5\xed\x7c\x16\xd8\x7f\x4a\x28\xa1\x0f\x05\x0d\x83\xcf\xab\xff\xcc\x53\x2f\x1c\x8d\xd9\xf0\x3c\x0b\xe3\x67\x07\xf0\x4c\xd6\x89\x0c\x9e\xfd\xbf\xe2\x47\x70\xd2\xff\x1c\xae\x4c\x07\x0e\x80\x63\x58\xe5\xe1\x4f\x73\x51\xaf\xef\xcb\xbb\xc9\xff\x7c\x97\x84\xdf\xe1\x2b\xe4\xd6\x4d\x5e\xac\xfd\x62\xc7\x0f\xe6\x76\x42\x80\xcb\x13\xf8\xcb\x92\xe7\x55\xc4\x11\x05\xdf\x64\x7f\xbe\x03\xf8\xdb\xfe\x8b\x20\x30\x72\xd2\x78\x8c\xe8\xa0\x1c\xdd\x28\x4d\xd7\xb3\x74\xca\x7f\x4e\x11\xb4\x38\xc7\x5e\x39\x19\xb4\xe5\xbb\x91\x74\x16\xfd\x08\x00\x00\xff\xff\x52\x6d\xde\x77\x62\x12\x00\x00")
|
var _bindataTemplatesRdstfMainTf = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x4d\x6f\xe3\x36\x10\xbd\xeb\x57\x10\xb9\xcb\xd9\xa2\x28\x0a\x04\x08\xd0\x24\xce\x16\x29\x76\x8b\x34\xc9\xb6\x40\x2f\x04\x45\x8d\x65\xc2\x14\xa9\x70\x46\x71\x1c\xaf\xff\xfb\x82\xa2\x6c\x4b\xb6\xfc\xed\xf5\xc9\x7a\x9c\x79\x7c\x33\x7e\x43\x5a\x04\xce\x89\x81\x75\x39\x9b\x46\x8c\x25\x42\x8e\xc0\xa4\xec\x02\x7f\xbd\xa8\x00\xc6\x92\x52\x8e\x80\x58\xfb\x73\xcd\x2e\x8c\x78\x53\x71\x22\xcc\x28\x5e\x50\xc4\xd2\xe6\xb9\x30\x69\x8c\x24\x08\x2e\xaa\x74\x07\x99\xb2\x66\x3d\x5d\x14\x31\xda\x92\x86\xf1\x2f\x21\x6e\x04\x13\xb6\xf6\xb9\x66\x17\x2e\xc5\x10\x30\xb6\x6e\x84\x85\x90\xc0\x47\x30\xe1\x85\x83\x81\x7a\xaf\x03\xc2\x7e\x78\x39\x9d\xb2\xde\xfd\x3b\x39\xf1\x04\x68\x4b\x27\x01\x7b\x7d\x41\x22\x11\x08\xbd\x07\x83\x24\x8c\x84\xbf\x45\x0e\x6c\x36\x0b\x9c\x85\xb3\x03\xa5\x61\x6d\x53\x99\xa7\x21\x40\x48\xdd\xa9\x2a\x34\x25\xb6\x63\x03\x2e\x1e\x94\x5a\xc7\xd2\x1a\x72\x56\xfb\xb4\x59\x34\x8b\xa2\xdc\xa6\xa5\x86\xa0\xbf\xea\x64\x50\xd4\xe0\xc8\x14\x5d\x5d\x21\x0e\xaf\x2e\x2f\x33\x45\x7f\x64\x8a\x86\x65\xd2\x93\x79\xda\xab\x5a\x4b\x20\x87\x3d\x65\x2e\xab\x07\x65\x06\x4e\x5c\xba\x14\x7b\x99\x22\xbf\x07\x98\x37\xe5\xac\xc9\xc1\x50\xc5\xd6\x51\xfa\x7d\x23\xe4\x3b\x7b\x2d\x2d\xf9\xc2\x23\xc6\x54\xdd\x0a\x6e\x7c\x2f\x3a\x73\xbb\xdb\xd6\x62\x29\x04\xe2\xd8\xba\x74\x5e\xcf\x36\x96\xc7\x79\x6c\x8b\xa1\x44\x70\xcd\xae\x6e\x63\xf8\xe6\x63\x5b\xd9\x95\xf8\x95\xec\x3e\x14\xda\x4e\x7c\xc5\xbd\x55\xc1\x11\x63\xb9\x35\x8a\xac\x53\x26\xe3\x87\x88\xff\xba\x48\xeb\x2e\xa3\x41\xbb\xac\x68\x5f\xca\xd5\xba\x22\xc6\xd2\x3a\x0a\xf7\x20\xea\x27\xbe\x4e\x64\xdf\x59\x5e\x22\xbd\xd8\xbf\xd0\x9a\xa0\x6a\xce\xc2\x49\x64\xe8\x59\xa2\x20\xec\x05\x44\x5e\x93\xfa\xaf\x6b\x7d\x0a\x51\x39\xa4\x4a\xaa\x58\x14\x85\x77\x6a\x57\x6b\x67\xb3\xb8\x03\x7e\x2e\x07\x7e\x2c\xe7\xf3\xb5\x20\xaa\x06\x65\xef\x6d\x9b\xe6\x3e\xcc\xda\x55\x03\x69\x47\x89\x11\x63\xd3\x69\xcc\xd4\x60\x73\x5f\x9f\xd5\x07\x3c\x98\x3f\x93\xc0\x8a\xea\x63\xd7\x9c\xb4\x13\x3c\x3d\x68\x84\x56\xfa\x6f\x9f\xe6\x2b\x26\xdd\x53\x46\x3f\xb9\x7f\x27\x30\xa8\xac\xc1\xfa\x67\x4d\x38\x2c\xa1\x5d\xe6\x68\x64\xaf\x3b\xe4\x30\x29\x4f\x20\x52\x6b\xf4\xa4\x32\x6c\x95\xef\x6a\x24\xb8\x7e\xbb\x94\x56\xf6\x4f\x94\xb2\x98\xeb\xfd\xe4\x34\x06\xfa\x34\x49\x8f\xe0\xfc\x05\xe8\x4f\xca\x07\x83\x2a\x1b\x12\xde\x1b\x91\x68\x48\xeb\xc3\x72\xb9\xce\x55\x1d\xc0\xa1\x8e\xd8\x71\x76\x6e\xa6\x3e\x55\xf5\xcd\x18\xe7\xe7\xfb\x9d\x16\x58\x5b\x4c\x8c\x91\x2f\xae\x08\x59\xe1\xdb\x15\xae\xd1\xb4\x46\xf2\x30\x49\xb7\x42\x8e\xca\xa2\xaf\xb0\xd1\xbc\xa4\xc2\xb8\x03\x02\x43\xca\x1a\x5e\x80\x53\xd6\xf7\xed\xd3\xda\xac\x6d\x8e\xfd\x7d\x93\x16\x63\x69\xcb\x49\x5d\x6a\x52\x37\xff\xb7\x05\xe5\x1e\xe4\xe2\x83\x5d\x33\x72\x25\x1c\xee\x16\x7c\xd5\x9f\x45\xae\xf4\xa4\x76\x07\xbe\x6a\x3e\x08\xc0\x0e\x33\x2c\x33\x4f\x68\xb2\x67\xb9\x37\x99\x32\xf0\x2f\x38\x7f\x3c\x34\x64\x40\x85\xf3\xb7\x7a\x61\xb7\x9c\x36\xd1\x09\xaa\xfc\x50\x3e\x41\xa1\x95\x14\xcb\xa9\xe6\x2e\x20\xab\x8e\xdc\x63\xc0\x6b\xae\x2e\x7b\xae\x8e\x4d\x6b\xa7\x13\x66\xb5\xb9\xed\xcf\x9c\xdb\xa2\xd0\x93\x87\xdc\xdf\x96\x82\x60\xee\x22\xe1\x51\xae\x1a\xf0\x8e\xb1\x5d\x65\x39\x52\xd6\x53\x8a\x37\x1a\x1c\xbd\x0c\x1d\xe0\xd0\xea\x14\x0f\x8d\xef\xdd\x15\xe5\x37\x52\x5a\x7d\x08\x5a\xb8\x51\x16\x25\x2f\x97\x20\x17\x5a\xb8\x9c\xd3\x3c\xa9\xbb\xb8\xdd\xdc\x87\x1b\xb4\x9b\xf3\xce\x41\xaa\xe8\x56\x68\xff\x03\x2f\x14\xcb\x0a\xe5\x49\x80\x4f\xd1\xdc\xe6\x3f\x8b\xea\xdb\xd2\x61\x5b\x71\xe2\x91\x93\xd5\xb6\x78\xcf\xa2\xb4\x7f\x7b\x67\x8d\x01\x49\xad\x3f\x3e\x72\x89\x1d\xad\xb5\xcd\x7c\x16\xb1\xff\x94\x50\x42\x1f\x0a\x1a\x06\x9e\x57\xff\xcc\x53\x0f\x1c\x2d\xb3\xc1\x79\x16\x8d\x9f\x1d\xc0\x33\x59\x27\x32\x78\xf6\xef\xd0\x8f\xe0\xa4\xff\xf3\x5c\x91\x0e\x1c\x00\xc7\xb0\xca\xc3\x2b\x76\x51\xaf\xef\xab\x77\x13\xff\xd9\x8e\x94\x6a\x87\xaf\x90\x5b\x37\x79\xb1\xf6\x8b\x1d\x3f\x98\xdb\x09\x01\x2e\x2b\xf0\x47\x2b\xcf\xab\x88\x23\x1a\xbe\x89\xfe\x7c\x05\xf8\xbb\xe1\x8b\x20\x30\x72\xd2\xb8\x74\x74\x40\x8e\x36\x4a\x93\xf5\x2c\x4e\xf9\xcf\x29\x82\x96\xce\xb1\x47\x4e\x16\xda\xe2\xdd\xa1\x74\xfe\x34\x8b\x7e\x04\x00\x00\xff\xff\xa9\x7e\x9a\x68\x9e\x12\x00\x00")
|
||||||
|
|
||||||
func bindataTemplatesRdstfMainTfBytes() ([]byte, error) {
|
func bindataTemplatesRdstfMainTfBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -252,10 +252,10 @@ func bindataTemplatesRdstfMainTf() (*asset, error) {
|
|||||||
|
|
||||||
info := bindataFileInfo{
|
info := bindataFileInfo{
|
||||||
name: "templates/rds-tf/main.tf",
|
name: "templates/rds-tf/main.tf",
|
||||||
size: 4706,
|
size: 4766,
|
||||||
md5checksum: "",
|
md5checksum: "",
|
||||||
mode: os.FileMode(420),
|
mode: os.FileMode(420),
|
||||||
modTime: time.Unix(1596116642, 0),
|
modTime: time.Unix(1596121552, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
|
|||||||
@@ -83,6 +83,8 @@ module "rds" {
|
|||||||
apply_immediately = {{ .ExtraResources.Database.ApplyImmediately | mustToJson }}
|
apply_immediately = {{ .ExtraResources.Database.ApplyImmediately | mustToJson }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .ExtraResources.RdsAlertThresholds }}
|
||||||
|
|
||||||
{{- if .ExtraResources.RdsAlertThresholds.CpuUtilization }}
|
{{- if .ExtraResources.RdsAlertThresholds.CpuUtilization }}
|
||||||
cpu_utilization_alarm_threshold = {{ .ExtraResources.RdsAlertThresholds.CpuUtilization | quote }}
|
cpu_utilization_alarm_threshold = {{ .ExtraResources.RdsAlertThresholds.CpuUtilization | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -119,4 +121,6 @@ module "rds" {
|
|||||||
write_latency_alarm_threshold = {{ .ExtraResources.RdsAlertThresholds.WriteLatency | quote }}
|
write_latency_alarm_threshold = {{ .ExtraResources.RdsAlertThresholds.WriteLatency | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user