[ch5781] | Piyush | Change the variable name in manifest

This commit is contained in:
piyush-sinha
2020-03-26 12:41:15 +05:30
parent 7def258652
commit 1ab0eff863
4 changed files with 35 additions and 36 deletions

View File

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

View File

@@ -7,7 +7,7 @@
"password": "foo_service_password",
"sizeInGb": 7,
"dbNames": ["foo_service"],
"backupEnabled": true
"backupDisabled": true
},
"aws_access": {
"policies": [

View File

@@ -26,10 +26,10 @@ module "rds" {
aws_instance_class = {{ .ExtraResources.Database.AwsInstanceClass | quote }}
{{- end }}
{{- if .ExtraResources.Database.BackupEnabled }}
backup_retention_period = 7
{{- else }}
{{- if .ExtraResources.Database.BackupDisabled }}
backup_retention_period = 0
{{- else }}
backup_retention_period = 7
{{- end }}
{{- if .ExtraResources.Database.PsqlFamily }}

View File

@@ -31,7 +31,7 @@ type Database struct {
SizeInGb int `json:"sizeInGb"`
DbNames []string `json:"dbNames"`
InstanceName string `json:"instanceName"`
BackupEnabled bool `json:"backupEnabled"`
BackupDisabled bool `json:"backupDisabled"`
}
type Team struct {