From 96cdb20aa4a0897cb33b1f1f6408a60afad46b21 Mon Sep 17 00:00:00 2001 From: dhruvjoshi Date: Thu, 29 Aug 2024 21:02:05 +0530 Subject: [PATCH] INFRA-3700 | Dhruv | fix -destroy getting added in plan stage --- bindata/bindata.go | 42 ++++++++++++++++---------------- templates/aurora-db-tf/deploy.sh | 6 ++--- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/bindata/bindata.go b/bindata/bindata.go index f4cfc86..6cd2905 100644 --- a/bindata/bindata.go +++ b/bindata/bindata.go @@ -1,6 +1,6 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: -// templates/aurora-db-tf/deploy.sh (1.516kB) +// templates/aurora-db-tf/deploy.sh (1.542kB) // templates/aurora-db-tf/main.tf (9.573kB) // templates/aws-roles-tf/deploy.sh (1.991kB) // templates/aws-roles-tf/main.tf (1.656kB) @@ -18,7 +18,7 @@ // templates/rds-tf/scripts/pre-terraform-apply/modify-version/11__to__13.sh (5.643kB) // templates/rds-tf/scripts/run_additional_scripts.sh (1.444kB) -package bindata +package main import ( "bytes" @@ -84,7 +84,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _templatesAuroraDbTfDeploySh = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x53\xb1\x6e\xdb\x40\x0c\xdd\xf5\x15\xac\x2b\x24\xed\xa0\x0b\x32\x76\xf0\x10\xa0\xdd\x8b\x2e\x1d\x0f\xb4\x8e\x71\x0f\x3d\xdd\x1d\x48\x2a\x4e\x21\xeb\xdf\x0b\xb9\x86\x1c\x45\xa9\xd2\x22\x1e\xbc\x49\x24\xef\x3d\xf2\x3d\xf2\xfd\xbb\x9b\x8d\x8f\x37\xf2\xa3\x28\x84\x14\xaa\x47\x2a\x0a\x74\xce\xab\x4f\x11\x83\x55\x62\xc6\xfb\xc4\x8d\x4d\x79\x08\xc9\x7a\xb5\x2a\x8a\xae\xab\xc0\xdf\x03\x46\x07\xe6\xae\x3e\xc4\xcd\xd7\x80\xf1\xf4\xf7\x99\x44\x39\xfd\x82\xbe\x7f\x05\xad\xec\x96\xf2\x3d\x54\xee\x0f\xd2\xea\x40\x4a\x41\x68\x60\x4e\x3c\xa7\x1a\x03\x77\x39\x87\x73\x30\x63\xab\xa9\xc2\x9c\x39\x3d\xd0\x91\x3e\xba\x01\xb7\x18\xab\x6f\x6f\x3f\x81\x8f\x5e\xa7\x91\x5d\xe2\x9f\x92\xb1\x26\x10\x0a\x54\x2b\x74\x1d\x98\x2f\x8f\xca\xf8\x8d\x24\xb5\x5c\x93\x98\xef\x63\x4d\xdf\xc3\x7e\x0f\x7f\x01\x88\xb4\x7b\xed\xf5\x68\xc7\xd4\x8a\xbe\x3f\x35\x65\xf1\x90\x59\xe7\x80\x71\xda\x6a\xf9\xbc\x06\x2a\x45\xde\x92\xae\x9b\xe4\xda\x40\x86\x9d\x98\xd3\xa7\xc5\x96\x13\xa3\xf5\x51\x14\x63\x4d\x2f\x55\x3b\x54\x34\xb8\x13\x2b\xed\x26\x92\x5a\xef\xc4\xd4\xa9\x69\x30\x3a\x9b\xd9\x3f\xa0\xd2\x31\x25\x50\x2e\x59\xf0\x54\xf2\xe7\x23\x3e\xd9\xaf\xd9\x94\xc7\x8d\x39\xef\xa0\xcb\x9d\xfe\x3f\xd5\xf9\x54\x9a\x70\x8b\xa2\x12\x04\x2f\x0a\x7b\xd8\x32\x65\xb8\x9e\xcf\x97\x93\xe8\x96\x49\xac\xdb\x5c\xc3\xd5\x15\xbc\x80\xc0\x0d\x94\x1f\xde\x86\xfc\x71\xc9\xbf\xf1\x46\x67\xee\xe1\x90\xb9\x1c\x41\x2f\x6d\x6f\xe6\x42\xff\xfb\x11\xfd\x0e\x00\x00\xff\xff\x04\x7f\xc6\x20\xec\x05\x00\x00") +var _templatesAuroraDbTfDeploySh = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xcc\x54\xb1\x6e\xdb\x30\x10\xdd\xf5\x15\x57\xd7\x48\xda\x41\x0c\x32\x76\xf0\x10\xa0\xdd\x8b\x2e\x1d\x89\xb3\x78\x71\x89\x52\x24\x71\x77\x8a\x53\xc8\xfa\xf7\x42\x8e\x21\x45\x91\xeb\xb4\x8d\x07\x6f\xd4\xdd\xd3\x7b\xbc\xf7\x4e\x7a\xff\xee\x66\xed\xe3\x8d\xfc\x28\x0a\x21\x85\xf2\x91\x8a\x02\x9d\xf3\xea\x53\xc4\x60\x95\x98\xf1\x3e\x71\x6d\x53\xee\x4b\xb2\x5a\x2c\x8a\xa2\x6d\x4b\xf0\xf7\x80\xd1\x81\xb9\xab\xf6\x75\xf3\x35\x60\x1c\x9f\x3e\x93\x28\xa7\x5f\xd0\x75\xaf\xb0\x2d\xdb\x53\xfd\x0e\x4a\xf7\xc4\xb4\xd8\x8b\x52\x10\xea\x95\x13\xcf\xa5\x86\xc2\x5d\xce\xe1\x1c\xca\xd8\x68\x2a\x31\x67\x4e\x0f\x74\x90\x8f\xae\xe7\x2d\x06\xf4\xed\xed\x27\xf0\xd1\xeb\xb4\xb2\x4d\xfc\x53\x32\x56\x04\x42\x81\x2a\x85\xb6\x05\xf3\xe5\x51\x19\xbf\x91\xa4\x86\x2b\x12\xf3\x7d\xc0\x74\x1d\xec\x76\xf0\x07\x82\x48\xdb\xd7\xde\x1e\xe2\x98\x46\xd1\x75\xe3\xa5\x2c\xee\x3b\xab\x1c\x30\x4e\xaf\xba\x7c\x89\x81\x52\x91\x37\xa4\xab\x3a\xb9\x26\x90\x61\x27\x66\x3c\x5a\x6c\x38\x31\x5a\x1f\x45\x31\x56\x74\x0c\xed\x50\xd1\xe0\x56\xac\x34\xeb\x48\x6a\xbd\x13\x53\xa5\xba\xc6\xe8\x6c\x66\xff\x80\x4a\x87\x96\xc0\xf2\x54\x04\xff\x91\xf8\x4b\x27\x9e\xad\xe1\xcc\x8c\xc3\x62\x9d\xd7\x8f\xd3\x03\xfd\xbb\xd4\xf9\xcc\x9c\x68\x8b\xa2\x12\x04\x2f\x0a\x3b\xd8\x30\x65\xb8\x9e\xcf\x97\x93\xe8\x86\x49\xac\x5b\x5f\xc3\xd5\x15\x1c\x61\xe0\x1a\x96\x1f\xde\xc6\xfc\x71\x8c\xf9\x58\x4a\xd8\x47\x7b\x39\xc6\x5d\xda\x7e\xcc\x0d\xfd\x9b\x6f\xea\xe9\x37\xf6\xec\xf8\x3b\x00\x00\xff\xff\xbc\x6b\xa8\xd9\x06\x06\x00\x00") func templatesAuroraDbTfDeployShBytes() ([]byte, error) { return bindataRead( @@ -99,8 +99,8 @@ func templatesAuroraDbTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/aurora-db-tf/deploy.sh", size: 1516, mode: os.FileMode(0644), modTime: time.Unix(1724746352, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf0, 0xd4, 0x9a, 0x89, 0x1e, 0xc0, 0xff, 0x94, 0x4, 0x98, 0x95, 0x58, 0xb2, 0x71, 0xdc, 0x9b, 0x83, 0x4c, 0xcc, 0x8f, 0xf6, 0x69, 0xd0, 0x4, 0x13, 0x4c, 0xa1, 0x5b, 0x9a, 0xfc, 0xbd, 0x26}} + info := bindataFileInfo{name: "templates/aurora-db-tf/deploy.sh", size: 1542, mode: os.FileMode(0644), modTime: time.Unix(1724943915, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7c, 0xca, 0x13, 0x6b, 0x13, 0x6b, 0x65, 0x6c, 0x53, 0x2e, 0x20, 0x26, 0x27, 0x4d, 0x1e, 0xa5, 0x71, 0x75, 0xb9, 0x2f, 0x6a, 0xed, 0xc4, 0xc1, 0x38, 0x14, 0xcc, 0x65, 0xf7, 0x4b, 0xf0, 0xbb}} return a, nil } @@ -119,7 +119,7 @@ func templatesAuroraDbTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/aurora-db-tf/main.tf", size: 9573, mode: os.FileMode(0644), modTime: time.Unix(1724744200, 0)} + info := bindataFileInfo{name: "templates/aurora-db-tf/main.tf", size: 9573, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4a, 0x35, 0x5b, 0x7e, 0x8b, 0x59, 0xbb, 0xc5, 0xda, 0xd7, 0x84, 0xac, 0x66, 0xe4, 0x85, 0x2d, 0x34, 0x9b, 0xff, 0x65, 0x9e, 0x18, 0x1d, 0x34, 0xaa, 0xad, 0xf1, 0x2a, 0x65, 0xf0, 0x3, 0x53}} return a, nil } @@ -139,7 +139,7 @@ func templatesAwsRolesTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/aws-roles-tf/deploy.sh", size: 1991, mode: os.FileMode(0644), modTime: time.Unix(1724746352, 0)} + info := bindataFileInfo{name: "templates/aws-roles-tf/deploy.sh", size: 1991, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6f, 0x6a, 0x3a, 0x16, 0x6b, 0xef, 0x6b, 0xef, 0x4e, 0x2d, 0x36, 0x8d, 0x48, 0xd6, 0x95, 0x13, 0x5d, 0xc1, 0x49, 0x6c, 0xf, 0xaa, 0x5f, 0xec, 0x3a, 0x7f, 0xe3, 0x8b, 0x9, 0xa3, 0x9d, 0xf5}} return a, nil } @@ -159,7 +159,7 @@ func templatesAwsRolesTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/aws-roles-tf/main.tf", size: 1656, mode: os.FileMode(0644), modTime: time.Unix(1724744200, 0)} + info := bindataFileInfo{name: "templates/aws-roles-tf/main.tf", size: 1656, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa0, 0x3, 0xb1, 0x88, 0xb3, 0xfd, 0xd4, 0x3f, 0xd3, 0x25, 0xbb, 0x69, 0x84, 0xc3, 0xe2, 0xaa, 0x5f, 0xb1, 0xdb, 0x59, 0x3b, 0x8f, 0x5b, 0xcc, 0x5b, 0xde, 0xf7, 0x6f, 0x79, 0x7e, 0xf8, 0x65}} return a, nil } @@ -179,7 +179,7 @@ func templatesAwsS3BucketTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/aws-s3-bucket-tf/deploy.sh", size: 1076, mode: os.FileMode(0644), modTime: time.Unix(1724746352, 0)} + info := bindataFileInfo{name: "templates/aws-s3-bucket-tf/deploy.sh", size: 1076, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa8, 0x77, 0x5d, 0x45, 0x27, 0xbb, 0xda, 0x2e, 0x2a, 0xb, 0x5d, 0x95, 0xbd, 0xaf, 0xc1, 0x76, 0x7, 0x2c, 0x21, 0x57, 0xe3, 0x4d, 0x99, 0x58, 0xe6, 0x71, 0x99, 0xfd, 0xf2, 0x1b, 0xd6, 0xd3}} return a, nil } @@ -199,7 +199,7 @@ func templatesAwsS3BucketTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/aws-s3-bucket-tf/main.tf", size: 1454, mode: os.FileMode(0644), modTime: time.Unix(1722587042, 0)} + info := bindataFileInfo{name: "templates/aws-s3-bucket-tf/main.tf", size: 1454, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf0, 0x71, 0xce, 0x7c, 0xca, 0xb0, 0x7, 0xc0, 0x33, 0x4, 0x50, 0x9c, 0xcf, 0x11, 0xe2, 0x18, 0x29, 0xef, 0xbc, 0x62, 0xd4, 0x7a, 0x6d, 0x8e, 0x2c, 0x49, 0xaa, 0x57, 0x17, 0xae, 0x24, 0x1b}} return a, nil } @@ -219,7 +219,7 @@ func templatesDocumentDbTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/document-db-tf/deploy.sh", size: 1046, mode: os.FileMode(0644), modTime: time.Unix(1724746352, 0)} + info := bindataFileInfo{name: "templates/document-db-tf/deploy.sh", size: 1046, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xdb, 0xd3, 0xe1, 0xf1, 0x25, 0x93, 0xee, 0x48, 0x7c, 0x5c, 0x5a, 0x6b, 0x59, 0x1d, 0xf0, 0xb5, 0x1e, 0xdc, 0x45, 0x9c, 0xc6, 0x57, 0xed, 0x2f, 0x46, 0xb2, 0x6b, 0xd7, 0xa7, 0x40, 0x1f, 0xf7}} return a, nil } @@ -239,7 +239,7 @@ func templatesDocumentDbTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/document-db-tf/main.tf", size: 5066, mode: os.FileMode(0644), modTime: time.Unix(1724744200, 0)} + info := bindataFileInfo{name: "templates/document-db-tf/main.tf", size: 5066, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2d, 0xd9, 0x95, 0x6e, 0x4a, 0xb2, 0x1d, 0xcf, 0x23, 0xbf, 0x54, 0xdf, 0xda, 0xfc, 0x9b, 0xcf, 0x2a, 0xb, 0xe1, 0x20, 0x89, 0xb8, 0x7d, 0x69, 0x3f, 0x58, 0x1a, 0x7b, 0x1d, 0x40, 0x80, 0xf0}} return a, nil } @@ -259,7 +259,7 @@ func templatesDynamoDbTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/dynamo-db-tf/deploy.sh", size: 647, mode: os.FileMode(0644), modTime: time.Unix(1724746352, 0)} + info := bindataFileInfo{name: "templates/dynamo-db-tf/deploy.sh", size: 647, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1, 0x6e, 0x5, 0xe0, 0xa9, 0x63, 0x81, 0x38, 0xa, 0x2e, 0xe3, 0xbf, 0x36, 0x20, 0xd7, 0xe6, 0x3c, 0xbe, 0x38, 0x8f, 0x55, 0x4a, 0x61, 0xbd, 0xfc, 0x44, 0x12, 0xb4, 0xea, 0xc1, 0x37, 0x4f}} return a, nil } @@ -279,7 +279,7 @@ func templatesDynamoDbTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/dynamo-db-tf/main.tf", size: 4640, mode: os.FileMode(0644), modTime: time.Unix(1724744200, 0)} + info := bindataFileInfo{name: "templates/dynamo-db-tf/main.tf", size: 4640, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa1, 0x80, 0x74, 0xfc, 0x5d, 0x8c, 0xf, 0xe8, 0x15, 0xb1, 0x2b, 0x4f, 0xa6, 0x60, 0xa5, 0xee, 0xcd, 0x43, 0x76, 0xdb, 0x50, 0xbe, 0x9c, 0x19, 0x23, 0x3b, 0x93, 0x97, 0xb3, 0x1d, 0x60, 0xc6}} return a, nil } @@ -299,7 +299,7 @@ func templatesElasticCacheTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/elastic-cache-tf/deploy.sh", size: 1048, mode: os.FileMode(0644), modTime: time.Unix(1724746352, 0)} + info := bindataFileInfo{name: "templates/elastic-cache-tf/deploy.sh", size: 1048, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x94, 0x9e, 0x35, 0xb, 0x47, 0xf8, 0xc6, 0x28, 0x77, 0x4c, 0x72, 0x91, 0x3, 0x38, 0x3e, 0xbf, 0xb9, 0x5, 0x78, 0xd4, 0xb, 0x41, 0x4e, 0x33, 0x3d, 0xea, 0x34, 0xc3, 0xe1, 0x29, 0xf5, 0x5e}} return a, nil } @@ -319,7 +319,7 @@ func templatesElasticCacheTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/elastic-cache-tf/main.tf", size: 6428, mode: os.FileMode(0644), modTime: time.Unix(1724744200, 0)} + info := bindataFileInfo{name: "templates/elastic-cache-tf/main.tf", size: 6428, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x30, 0x56, 0xd9, 0xab, 0xe1, 0x23, 0x2e, 0x3, 0x58, 0xf2, 0xf7, 0x5a, 0xc4, 0x23, 0xc, 0x87, 0xa3, 0x3, 0xc5, 0x6b, 0x4a, 0x0, 0xc2, 0x46, 0xd2, 0xbc, 0xfc, 0xa6, 0xd5, 0x24, 0x79, 0x3b}} return a, nil } @@ -339,7 +339,7 @@ func templatesRdsTfDeploySh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/rds-tf/deploy.sh", size: 4247, mode: os.FileMode(0644), modTime: time.Unix(1724744418, 0)} + info := bindataFileInfo{name: "templates/rds-tf/deploy.sh", size: 4247, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf9, 0x96, 0x69, 0x8f, 0x9a, 0x4f, 0x4a, 0x80, 0x70, 0x6e, 0xd6, 0x5, 0xc6, 0x4d, 0xa1, 0xd5, 0x26, 0xc7, 0x79, 0xc9, 0x7e, 0x84, 0x8a, 0x54, 0x5b, 0xfd, 0x7f, 0x85, 0x24, 0x86, 0xb3, 0xaf}} return a, nil } @@ -359,7 +359,7 @@ func templatesRdsTfMainTf() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/rds-tf/main.tf", size: 11659, mode: os.FileMode(0644), modTime: time.Unix(1724744200, 0)} + info := bindataFileInfo{name: "templates/rds-tf/main.tf", size: 11659, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x25, 0xdc, 0xc8, 0xb2, 0x39, 0x13, 0xb1, 0x49, 0x15, 0xc2, 0x2, 0xb3, 0xa5, 0x3d, 0xbc, 0xa2, 0xa1, 0x9e, 0x36, 0x7d, 0xb8, 0x3f, 0x3, 0xfc, 0xd0, 0xed, 0xeb, 0xdf, 0x97, 0xcf, 0x85, 0x6e}} return a, nil } @@ -379,7 +379,7 @@ func templatesRdsTfScriptsPostTerraformApplyModifyVersion11__to__13Sh() (*asset, return nil, err } - info := bindataFileInfo{name: "templates/rds-tf/scripts/post-terraform-apply/modify-version/11__to__13.sh", size: 2751, mode: os.FileMode(0755), modTime: time.Unix(1718347862, 0)} + info := bindataFileInfo{name: "templates/rds-tf/scripts/post-terraform-apply/modify-version/11__to__13.sh", size: 2751, mode: os.FileMode(0755), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc8, 0x4b, 0x4, 0x40, 0x45, 0x23, 0xbd, 0xb2, 0x6f, 0xae, 0xe2, 0x47, 0x17, 0xea, 0xca, 0x94, 0x12, 0x5e, 0x7, 0x82, 0x42, 0x51, 0xfc, 0x56, 0x35, 0x8, 0x4f, 0x68, 0x8, 0xee, 0x1b, 0x1f}} return a, nil } @@ -399,7 +399,7 @@ func templatesRdsTfScriptsPreTerraformApplyModifyVersion11__to__13Sh() (*asset, return nil, err } - info := bindataFileInfo{name: "templates/rds-tf/scripts/pre-terraform-apply/modify-version/11__to__13.sh", size: 5643, mode: os.FileMode(0755), modTime: time.Unix(1718347862, 0)} + info := bindataFileInfo{name: "templates/rds-tf/scripts/pre-terraform-apply/modify-version/11__to__13.sh", size: 5643, mode: os.FileMode(0755), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x13, 0xb, 0x3c, 0x85, 0xfa, 0x1b, 0x6f, 0xc1, 0xa9, 0xef, 0xc4, 0x15, 0xcf, 0xc0, 0xad, 0xd4, 0x29, 0x3, 0xbf, 0x4a, 0xec, 0x13, 0x24, 0x6f, 0x3d, 0xd3, 0xc3, 0x97, 0xba, 0xfe, 0x72, 0x4a}} return a, nil } @@ -419,7 +419,7 @@ func templatesRdsTfScriptsRun_additional_scriptsSh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/rds-tf/scripts/run_additional_scripts.sh", size: 1444, mode: os.FileMode(0644), modTime: time.Unix(1724753051, 0)} + info := bindataFileInfo{name: "templates/rds-tf/scripts/run_additional_scripts.sh", size: 1444, mode: os.FileMode(0644), modTime: time.Unix(1724939511, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xff, 0x58, 0xda, 0x8d, 0x27, 0x34, 0x47, 0x37, 0x43, 0xd0, 0xbf, 0xb4, 0xdd, 0x9f, 0xb5, 0x28, 0x30, 0x71, 0x25, 0x1c, 0x43, 0xfb, 0xe1, 0x26, 0x23, 0x70, 0xf, 0x38, 0x7c, 0x1c, 0xa9, 0x2f}} return a, nil } diff --git a/templates/aurora-db-tf/deploy.sh b/templates/aurora-db-tf/deploy.sh index fac5210..68b091e 100644 --- a/templates/aurora-db-tf/deploy.sh +++ b/templates/aurora-db-tf/deploy.sh @@ -16,16 +16,16 @@ terraform119 workspace select {{ .ExtraResources.Workspace }} || terraform119 wo {{- if .Actions.Plan }} terraform_action=plan terraform119 $terraform_action -target=module.rds.module.rds_aurora_instance -target=module.rds.data.aws_subnet_ids.command_private_subnets $additional_terraform_options -{{- end }} +{{- else if or .Actions.Destroy .Actions.Apply }} {{- if .Actions.Destroy }} terraform_action=destroy terraform119 $terraform_action -target=module.rds.module.rds_aurora_instance $additional_terraform_options terraform119 $terraform_action -target=module.rds.data.aws_subnet_ids.command_private_subnets $additional_terraform_options terraform119 state list | grep 'module.rds.module.postgres_db' && terraform119 state rm $(terraform119 state list | grep 'module.rds.module.postgres_db') -{{- end }} -{{- if .Actions.Apply }} +{{- else }} terraform_action=apply terraform119 $terraform_action -target=module.rds.data.aws_subnet_ids.command_private_subnets $additional_terraform_options terraform119 $terraform_action -target=module.rds.module.rds_aurora_instance $additional_terraform_options terraform119 $terraform_action -target=module.rds.module.postgres_db $additional_terraform_options {{- end }} +{{- end }}