INFRA-413| Deepak Jain | adding apply_immediatly field in rds

This commit is contained in:
Deepak Jain
2020-06-29 15:52:29 +05:30
parent 7c8040a4da
commit e1956410e1
4 changed files with 78 additions and 77 deletions

View File

@@ -118,7 +118,7 @@ func bindataTemplatesAwsrolestfDeploysh() (*asset, error) {
size: 715,
md5checksum: "",
mode: os.FileMode(420),
modTime: time.Unix(1593063186, 0),
modTime: time.Unix(1589190905, 0),
}
a := &asset{bytes: bytes, info: info}
@@ -161,7 +161,7 @@ func bindataTemplatesAwsrolestfMaintf() (*asset, error) {
size: 735,
md5checksum: "",
mode: os.FileMode(420),
modTime: time.Unix(1593063186, 0),
modTime: time.Unix(1583150135, 0),
}
a := &asset{bytes: bytes, info: info}
@@ -199,7 +199,7 @@ func bindataTemplatesAwss3buckettfDeploysh() (*asset, error) {
size: 428,
md5checksum: "",
mode: os.FileMode(420),
modTime: time.Unix(1593063186, 0),
modTime: time.Unix(1589190905, 0),
}
a := &asset{bytes: bytes, info: info}
@@ -242,7 +242,7 @@ func bindataTemplatesAwss3buckettfMaintf() (*asset, error) {
size: 660,
md5checksum: "",
mode: os.FileMode(420),
modTime: time.Unix(1593063186, 0),
modTime: time.Unix(1587036332, 0),
}
a := &asset{bytes: bytes, info: info}
@@ -283,7 +283,7 @@ func bindataTemplatesRdstfDeploysh() (*asset, error) {
size: 817,
md5checksum: "",
mode: os.FileMode(420),
modTime: time.Unix(1593164804, 0),
modTime: time.Unix(1593411032, 0),
}
a := &asset{bytes: bytes, info: info}
@@ -292,34 +292,35 @@ func bindataTemplatesRdstfDeploysh() (*asset, error) {
}
var _bindataTemplatesRdstfMaintf = []byte(
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x55\x4d\x6f\xdb\x3a\x10\xbc\xeb\x57\x10\xbe\x4b\xce\xc3\xc3\xc3\x03" +
"\x02\x04\x68\x5a\xbb\x45\x0a\xb4\x08\x92\xb4\x87\x5e\x04\x8a\x5a\xc9\x84\xa9\xa5\xc2\xa5\xe2\x38\x8e\xff\x7b\x41" +
"\x51\xb6\x25\x5b\xfe\xaa\x51\x9d\x92\xd5\xee\x70\x76\x3c\x43\x59\x30\x86\x67\xda\x14\x6c\x11\x30\x96\x70\x31\x05" +
"\x4c\xd9\x80\xfe\x1d\xd4\x05\xc6\x92\x4a\x4c\xc1\xb2\xee\x73\xc3\x06\xc8\x5f\x64\x98\x70\x9c\x86\x6b\x88\x50\xe8" +
"\xa2\xe0\x98\x86\x64\xb9\x85\x41\x3d\x6e\x20\x97\x1a\x77\xc7\x79\x19\x92\xae\xec\x24\xfc\xc7\xf7\x4d\x61\xce\x76" +
"\x9e\x1b\x36\x30\x29\xf9\x86\x99\x36\x53\x2a\xb9\x80\x78\x0a\xf3\xb8\x34\x90\xc9\xd7\xa6\xc1\x9f\x47\xc3\xc5\x82" +
"\x45\xe3\x57\x6b\xf8\x03\x90\xae\x8c\x00\x8a\x46\xdc\xf2\x84\x13\x44\x77\x48\x96\xa3\x80\xef\xbc\x00\xb6\x5c\x7a" +
"\xcc\xd2\xe8\x4c\x2a\xd8\x39\x54\x14\xa9\x6f\xe0\x42\xf5\xb2\xf2\xa2\x84\x7a\x86\x60\xc2\xac\x52\x2a\x14\x1a\xad" +
"\xd1\xca\x8d\x2d\x83\x65\x10\x14\x3a\xad\x14\x78\xfe\xb5\x92\x9e\x51\x0b\x23\x97\xf6\xfa\x9a\x68\x72\x3d\x1c\xe6" +
"\xd2\x7e\xc8\xa5\x9d\x54\x49\x24\x8a\x34\xaa\xa5\xb5\x20\x26\x91\xc4\x61\xfd\x8f\xc4\xcc\xf0\xa1\x49\x29\xca\xa5" +
"\x75\x67\x00\xbe\x48\xa3\xb1\x00\xb4\x35\x5a\xcf\xea\xe3\x56\xcb\x3b\x7b\xae\xb4\x75\x8b\x07\x8c\xc9\x46\x8a\x18" +
"\x9d\x16\xbd\xb3\xfd\xb2\x75\x50\x4a\x4e\x34\xd3\x26\x5d\xed\x73\x08\xe5\x7e\xd5\xdb\x41\xa8\x08\x4c\x5b\xd5\x43" +
"\x08\x3f\x5c\x6f\x67\xba\x26\xbf\x35\x3d\x82\x52\xe9\xb9\xdb\x38\xda\x26\x1c\x30\x56\x68\x94\x56\x1b\x89\x79\x7c" +
"\x0e\xf9\x6f\xeb\xb1\xfe\x35\x5a\xb0\x9b\x8d\x4e\x85\xdc\xde\x2b\x60\x2c\x6d\xba\xe8\x04\xa0\x51\xe2\xf6\x24\xf6" +
"\xce\x8a\x8a\xec\x93\xfe\x4a\x1a\x3d\xab\x15\x4a\x6c\x79\x4e\x0e\x25\xf0\xc4\x9e\x80\x17\x0d\xa8\xfb\x73\x47\x27" +
"\xdf\x55\x40\x2a\x85\x0c\x79\x59\x3a\xa7\xf6\x49\xbb\x5c\x86\x3d\xe5\xc7\x2a\x73\xb1\x5c\xe5\x6b\x0d\x54\x07\xe5" +
"\xe4\x63\xdb\xe6\x3e\xcf\xda\xb5\x80\xf6\xc8\x8a\x01\x63\x8b\x45\xc8\x64\xb6\x5f\xd7\x47\xf9\x06\x77\xf8\x25\xf1" +
"\xa8\x24\xdf\x8e\xe5\xa4\x3b\xe0\xe0\x41\x11\x74\xc6\xff\xbb\x5a\xbd\xc1\xf4\x44\x1a\xa3\x64\xfc\x6a\x01\x49\x6a" +
"\xa4\xe6\x67\x4d\x62\xd8\x94\x8e\x99\xa3\x35\xbd\xeb\x90\xf3\xa8\x3c\x00\x4f\x35\xaa\x79\x6d\xd8\x7a\xde\x34\x15" +
"\xef\xfa\xc3\x54\x3a\xd3\x7f\x91\xca\x3a\xd7\xa7\xd1\x69\x05\xfa\x32\x4a\xf7\x60\xdc\x07\xd0\xdd\x94\x77\x48\x32" +
"\x9f\x58\x1a\x23\x4f\x14\xa4\xcd\x65\xb9\x79\x1f\xcb\xa6\x21\x86\xa6\xe3\xc8\xdd\xb9\x1f\xfa\x52\xd6\xb7\x33\x5a" +
"\xdd\xef\x9f\x14\xa7\xc6\x62\x7c\x46\xf1\xfa\x13\x21\xea\xfa\x61\x86\x3b\x30\x9d\x48\x9e\x47\xe9\x23\x17\xd3\xaa" +
"\x1c\x49\x6a\x89\x97\xd4\xb5\xd8\x80\x05\xb4\x52\x63\x5c\x82\x91\xda\xe9\x76\xb5\x93\xb5\xfd\xbd\xff\xef\xe3\x82" +
"\xda\x1e\xb8\xa9\x2b\x65\xe5\xed\xaf\x2e\xa1\xc2\x15\x63\xfe\xc6\x6e\x98\x35\x15\x9c\xef\x16\x7a\x56\x9f\x79\x21" +
"\xd5\xbc\x71\x07\x3d\xab\x38\xf3\x85\x23\x66\xd8\x4c\x5e\x20\xb2\x43\x19\x63\x2e\x11\x7e\x82\x71\xd7\x43\x8b\x06" +
"\xd4\xf5\xf8\xa5\x79\x71\x9c\x4e\x17\xe8\x02\x56\x2e\x94\x0f\x50\x2a\x29\xf8\x26\xd5\xb1\xf1\x95\x6d\x47\x9e\x10" +
"\xf0\x06\xab\xcf\x9e\xdb\xb1\xe9\x9c\x74\x41\x56\xdb\xc7\xfe\x71\x6e\x97\xc1\xef\x00\x00\x00\xff\xff\x2b\xab\xb3" +
"\x97\x94\x0b\x00\x00")
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x55\x5d\x6b\xe3\x38\x14\x7d\xf7\xaf\x10\x79\xb7\xd3\x65\x59\x16\x0a" +
"\x85\xed\x6e\xb2\x43\x06\x66\x28\x6d\x67\x1e\xe6\x45\xc8\xf6\xb5\x23\x22\x5f\xb9\xba\x72\xd3\x34\xcd\x7f\x1f\x64" +
"\x39\x89\x9d\x38\x5f\x84\xfa\xa9\xbd\xbe\xf7\xe8\xdc\x93\x73\x64\x0b\xc6\x88\x4c\x9b\x82\x2d\x03\xc6\x62\x91\xcc" +
"\x00\x53\x36\xa0\x3f\x07\x75\x81\xb1\xb8\x4a\x66\x60\x59\xf7\xb9\x63\x03\x14\xaf\x32\x8c\x05\xce\xc2\x0d\x44\x98" +
"\xe8\xa2\x10\x98\x86\x64\x85\x85\x41\x3d\x6e\x20\x97\x1a\xf7\xc7\x45\x19\x92\xae\xec\x34\xfc\xc3\xf7\xcd\x60\xc1" +
"\xf6\x9e\x3b\x36\x30\x29\xf9\x86\xb9\x36\x33\x2a\x45\x02\x7c\x06\x0b\x5e\x1a\xc8\xe4\x5b\xd3\xe0\xcf\xa3\xe1\x72" +
"\xc9\xa2\xf1\x9b\x35\xe2\x11\x48\x57\x26\x01\x8a\x46\xc2\x8a\x58\x10\x44\x13\x24\x2b\x30\x81\xef\xa2\x00\xb6\x5a" +
"\x79\xcc\xd2\xe8\x4c\x2a\xd8\x3b\x34\x29\x52\xdf\x20\x12\xd5\xcb\xca\x8b\x12\xea\x39\x82\x09\xb3\x4a\xa9\x30\xd1" +
"\x68\x8d\x56\x6e\x6c\x15\xac\x82\xa0\xd0\x69\xa5\xc0\xf3\xaf\x95\xf4\x8c\x5a\x18\xb9\xb4\xb7\xb7\x44\xd3\xdb\xe1" +
"\x30\x97\xf6\x9f\x5c\xda\x69\x15\x47\x49\x91\x46\xb5\xb4\x16\x92\x69\x24\x71\x58\xff\x23\x31\x33\x62\x68\x52\x8a" +
"\x72\x69\xdd\x19\x80\xaf\xd2\x68\x2c\x00\x6d\x8d\xd6\xb3\xfa\xb8\xd5\xf2\xc1\x5e\x2a\x6d\xdd\xe2\x01\x63\xb2\x91" +
"\x82\xa3\xd3\xa2\x77\xb6\x5f\xb6\x0e\x4a\x29\x88\xe6\xda\xa4\xeb\x7d\x8e\xa1\x3c\xac\x7b\x3b\x08\x15\x81\x69\xab" +
"\x7a\x0c\xe1\x87\xeb\xed\x4c\xd7\xe4\x77\xa6\x47\x50\x2a\xbd\x70\x1b\x47\xbb\x84\x03\xc6\x0a\x8d\xd2\x6a\x23\x31" +
"\xe7\x97\x90\xff\xb6\x19\xeb\x5f\xa3\x05\xbb\xdd\xe8\x5c\xc8\xdd\xbd\x02\xc6\xd2\xa6\x8b\xce\x00\x1a\xc5\x6e\x4f" +
"\x62\x1f\xac\xa8\xc8\x3e\xeb\xaf\xa4\xd1\xb3\x5a\xa3\x70\x2b\x72\x72\x28\x81\x27\xf6\x0c\xa2\x68\x40\xdd\x9f\x7b" +
"\x3a\xf9\xae\x02\x52\x99\xc8\x50\x94\xa5\x73\x6a\x9f\xb4\xab\x55\xd8\x53\x7e\xaa\x32\x17\xcb\x75\xbe\x36\x40\x75" +
"\x50\xce\x3e\xb6\x6d\xee\xcb\xac\x5d\x0b\x68\x4f\xac\x18\x30\xb6\x5c\x86\x4c\x66\x87\x75\x7d\x92\xef\x30\xc1\x2f" +
"\xb1\x47\x25\xf9\x7e\x2a\x27\xdd\x01\x07\x0f\x8a\xa0\x33\xfe\xd7\xcd\xfa\x0d\xa6\x67\xd2\x18\xc5\xe3\x37\x0b\x48" +
"\x52\x23\x35\x3f\x6b\xcc\x61\x5b\x3a\x65\x8e\xd6\xf4\xbe\x43\x2e\xa3\xf2\x08\x22\xd5\xa8\x16\xb5\x61\xeb\x79\xd3" +
"\x54\xbc\xeb\x8f\x53\xe9\x4c\x7f\x22\x95\x4d\xae\xcf\xa3\xd3\x0a\xf4\x75\x94\x1e\xc0\xb8\x0f\xa0\xbb\x29\x27\x48" +
"\x32\x9f\x5a\x1a\xa3\x88\x15\xa4\xcd\x65\xb9\x7d\xcf\x65\xd3\xc0\xa1\xe9\x38\x71\x77\x1e\x86\xbe\x96\xf5\xfd\x9c" +
"\xd6\xf7\xfb\x7f\x4a\x50\x63\x31\x31\x27\xbe\xf9\x44\x24\x75\xfd\x38\xc3\x3d\x98\x4e\x24\x2f\xa3\xf4\xaf\x48\x66" +
"\x55\x39\x92\xd4\x12\x2f\xae\x6b\xdc\x80\x05\xb4\x52\x23\x2f\xc1\x48\xed\x74\xbb\xd9\xcb\xda\xe1\xde\xbf\x0f\x71" +
"\x41\x6d\x8f\xdc\xd4\x95\xb2\xf2\xfe\x57\x97\x50\xe1\x8a\x5c\xbc\xb3\x3b\x66\x4d\x05\x97\xbb\x85\x5e\xd4\xff\xa2" +
"\x90\x6a\xd1\xb8\x83\x5e\x14\xcf\x7c\xe1\x84\x19\xb6\x93\x57\x88\xec\x50\xc6\x98\x4b\x84\x9f\x60\xdc\xf5\xd0\xa2" +
"\x01\x75\x9d\xbf\x36\x2f\x4e\xd3\xe9\x02\x5d\xc1\xca\x85\xf2\x11\x4a\x25\x13\xb1\x4d\x35\x37\xbe\xb2\xeb\xc8\x33" +
"\x02\xde\x60\xf5\xd9\x73\x37\x36\x9d\x93\xae\xc8\x6a\xfb\xd8\xcf\xcc\x6d\x59\xaa\xc5\xa4\x70\x5f\x4b\x61\x61\xed" +
"\x22\xe1\xaa\x5c\xb6\xca\x27\x62\xbb\x8b\x72\x8c\x16\x63\x41\xb0\x0a\x7e\x07\x00\x00\xff\xff\x4e\xc8\x62\x53\x2d" +
"\x0c\x00\x00")
func bindataTemplatesRdstfMaintfBytes() ([]byte, error) {
return bindataRead(
@@ -338,10 +339,10 @@ func bindataTemplatesRdstfMaintf() (*asset, error) {
info := bindataFileInfo{
name: "templates/rds-tf/main.tf",
size: 2964,
size: 3117,
md5checksum: "",
mode: os.FileMode(420),
modTime: time.Unix(1593160053, 0),
modTime: time.Unix(1593423964, 0),
}
a := &asset{bytes: bytes, info: info}

View File

@@ -10,6 +10,7 @@
"dbExtensions": ["pgcrypto"],
"readonlyUser": "foo_readonly_user",
"readonlyPassword": "foo_readonly_password",
"applyImmediately": false,
"performanceInsightsEnabled": false,
"readReplica": {
"awsInstanceClass": "db.t3.micro",
@@ -17,8 +18,7 @@
}
},
"aws_access": {
"policies": [
{
"policies": [{
"actions": ["s3:GetObject", "s3:PutObject"],
"resource": "arn:aws:s3:::navi-e3e2a9bfd88566b05001b02a3f51d286/*"
},
@@ -32,28 +32,23 @@
}
]
},
"s3_buckets": [
{
"s3_buckets": [{
"anonymizedBucketName": "navi-bucket-test-1",
"bucketTag": "customer-uploads",
"lifecycleRules": [
{
"lifecycleRules": [{
"expiration": {
"days": 1
}
}
]
}]
},
{
"anonymizedBucketName": "navi-bucket-test-2",
"bucketTag": "document-uploads",
"lifecycleRules": [
{
"lifecycleRules": [{
"expiration": {
"days": 1
}
}
]
}]
}
]
},

View File

@@ -79,4 +79,8 @@ module "rds" {
read_replica_performance_insights_enabled = {{ .ExtraResources.Database.ReadReplica.PerformanceInsightsEnabled | mustToJson }}
{{- end }}
{{- if .ExtraResources.Database.ApplyImmediately }}
apply_immediately = {{ .ExtraResources.Database.ApplyImmediately | mustToJson }}
{{- end }}
}

View File

@@ -34,6 +34,7 @@ type Database struct {
InstanceName string `json:"instanceName" valid:"required"`
BackupDisabled bool `json:"backupDisabled"`
MultiAZDisabled bool `json:"multiAZDisabled"`
ApplyImmediately bool `json:"applyImmediately"`
DbExtensions []string `json:"dbExtensions"`
MonitoringUser string `env:"MONITORING_USER"`
MonitoringPassword string `env:"MONITORING_PASSWORD"`