[INFRA-403] | Piyush | Fail the rds deploy script if terraform errors out

This commit is contained in:
Piyush Sinha
2020-06-26 15:17:40 +05:30
parent 340fd6bd43
commit 6b35e3f75e
2 changed files with 13 additions and 11 deletions

View File

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

View File

@@ -1,5 +1,7 @@
#!/bin/sh
set -e
additional_terraform_options=""
terraform_action=${1:-apply}