* [ch11782] | Anoop | Add validations for components * [ch11782] | Anoop | Allow database & servicerole structure to be null * [ch11782] | Anoop | Add required validation for s3 fields
531 lines
19 KiB
Go
531 lines
19 KiB
Go
// Code generated by go-bindata. DO NOT EDIT.
|
|
// sources:
|
|
// templates/aws-roles-tf/deploy.sh
|
|
// templates/aws-roles-tf/main.tf
|
|
// templates/aws-s3-bucket-tf/deploy.sh
|
|
// templates/aws-s3-bucket-tf/main.tf
|
|
// templates/rds-tf/deploy.sh
|
|
// templates/rds-tf/main.tf
|
|
|
|
package bindata
|
|
|
|
|
|
import (
|
|
"bytes"
|
|
"compress/gzip"
|
|
"fmt"
|
|
"io"
|
|
"io/ioutil"
|
|
"os"
|
|
"path/filepath"
|
|
"strings"
|
|
"time"
|
|
)
|
|
|
|
func bindataRead(data []byte, name string) ([]byte, error) {
|
|
gz, err := gzip.NewReader(bytes.NewBuffer(data))
|
|
if err != nil {
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
}
|
|
|
|
var buf bytes.Buffer
|
|
_, err = io.Copy(&buf, gz)
|
|
clErr := gz.Close()
|
|
|
|
if err != nil {
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
}
|
|
if clErr != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return buf.Bytes(), nil
|
|
}
|
|
|
|
|
|
type asset struct {
|
|
bytes []byte
|
|
info fileInfoEx
|
|
}
|
|
|
|
type fileInfoEx interface {
|
|
os.FileInfo
|
|
MD5Checksum() string
|
|
}
|
|
|
|
type bindataFileInfo struct {
|
|
name string
|
|
size int64
|
|
mode os.FileMode
|
|
modTime time.Time
|
|
md5checksum string
|
|
}
|
|
|
|
func (fi bindataFileInfo) Name() string {
|
|
return fi.name
|
|
}
|
|
func (fi bindataFileInfo) Size() int64 {
|
|
return fi.size
|
|
}
|
|
func (fi bindataFileInfo) Mode() os.FileMode {
|
|
return fi.mode
|
|
}
|
|
func (fi bindataFileInfo) ModTime() time.Time {
|
|
return fi.modTime
|
|
}
|
|
func (fi bindataFileInfo) MD5Checksum() string {
|
|
return fi.md5checksum
|
|
}
|
|
func (fi bindataFileInfo) IsDir() bool {
|
|
return false
|
|
}
|
|
func (fi bindataFileInfo) Sys() interface{} {
|
|
return nil
|
|
}
|
|
|
|
var _bindataTemplatesAwsrolestfDeploysh = []byte(
|
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x51\x4d\x6f\xe2\x30\x10\xbd\xfb\x57\xcc\x86\x5c\x1d\xb4\xd7\x5d\xe5" +
|
|
"\x80\xd8\xdc\xb6\xa8\x82\x56\x3d\x54\x15\x32\xce\xb8\x58\x38\xe3\xc8\x76\x20\x51\xf0\x7f\xaf\x82\x54\x1a\x28\xa2" +
|
|
"\x47\xbf\x0f\xcf\x7b\x33\x93\x5f\xd3\x8d\xa6\xa9\xdf\x32\x36\x01\x6c\x75\x80\xc3\x16\x09\x04\x75\x20\x6d\x55\x09" +
|
|
"\x2a\x41\x09\x6d\x3c\xf3\x18\x80\x23\x63\xa2\x2c\x75\xd0\x96\x84\x59\x07\x74\x4e\x28\xeb\xaa\xb5\xad\x07\xc8\xe7" +
|
|
"\x49\x32\xe6\x77\xcd\x06\xc7\x14\xfb\x32\x08\x39\xa0\x79\xda\xff\xfe\xc3\x45\x5d\x9b\x2e\x32\xad\xe0\x15\xd2\x6b" +
|
|
"\x09\xe4\x39\x24\x27\x45\x02\x6f\x7f\xc3\x16\x89\x01\x00\xdc\x4f\x91\xf6\xf7\xf8\x08\x5c\x34\xc1\x0e\x73\x9d\xdd" +
|
|
"\x63\xc2\xd0\x78\xbc\xfe\xf5\x32\xfb\xc5\x87\x63\x2a\x02\xe7\xa5\xeb\xb8\x6b\x28\x61\x4a\x8f\x2a\x82\x26\x1d\x46" +
|
|
"\xcf\x83\x75\x3b\x5f\x0b\x89\xe0\xd1\xa0\x0c\xd0\xf7\x90\x15\x6d\x70\x62\x89\xde\x36\x4e\xa2\xcf\x5e\xce\x9a\x18" +
|
|
"\xe1\x78\x84\x5b\x6e\xc2\xc3\x4f\xd6\xd1\xd4\xef\xfb\x4c\xef\xad\x86\xb1\xa1\x9c\x0c\x06\xa4\x25\xa5\xdf\xa1\xf1" +
|
|
"\xc8\xa5\xa5\x80\x6d\x80\xb4\x9f\xff\x7f\x5e\x3d\x15\xcb\x78\x56\x9d\x0e\x03\x5c\x9d\x12\xfd\xc3\xda\xd8\xae\x42" +
|
|
"\x0a\xd9\x42\x54\x43\x10\x7e\x03\x5e\x35\x4a\xe9\xf6\x93\xbc\x6a\x51\xd0\x5e\x3b\x4b\x83\x18\x62\xcc\x3a\x51\x19" +
|
|
"\xe0\x04\x69\xbf\x98\x3d\x14\xab\xc7\xd9\xbc\x88\x17\x05\xc6\xa7\x60\x1f\x01\x00\x00\xff\xff\xae\xfa\x5e\xb7\xcb" +
|
|
"\x02\x00\x00")
|
|
|
|
func bindataTemplatesAwsrolestfDeployshBytes() ([]byte, error) {
|
|
return bindataRead(
|
|
_bindataTemplatesAwsrolestfDeploysh,
|
|
"templates/aws-roles-tf/deploy.sh",
|
|
)
|
|
}
|
|
|
|
|
|
|
|
func bindataTemplatesAwsrolestfDeploysh() (*asset, error) {
|
|
bytes, err := bindataTemplatesAwsrolestfDeployshBytes()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
info := bindataFileInfo{
|
|
name: "templates/aws-roles-tf/deploy.sh",
|
|
size: 715,
|
|
md5checksum: "",
|
|
mode: os.FileMode(420),
|
|
modTime: time.Unix(1588787351, 0),
|
|
}
|
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
}
|
|
|
|
var _bindataTemplatesAwsrolestfMaintf = []byte(
|
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x91\x41\x6b\xdc\x30\x10\x85\xef\xfe\x15\xc2\x77\xc9\x94\xde\x16\x02" +
|
|
"\x6d\x68\x2e\x3d\x94\x12\x17\x7a\x34\x5a\xed\xd8\x16\x96\x34\xee\x68\xb4\xc9\xb2\xf1\x7f\x2f\x92\x92\xb2\x65\xb7" +
|
|
"\xb4\xd5\xcd\xc3\x7b\x9f\xe7\xbd\x61\x20\xd2\x23\x92\x17\xe7\x46\x88\xbd\x36\x0b\x84\x83\x68\xe3\xfb\xb6\x0c\x84" +
|
|
"\xd8\x27\xb3\x00\x8b\xdf\xdf\x9d\x68\xcf\x67\xa1\x7a\xd6\x0c\x3d\x23\xc1\x7d\x35\xaa\xfb\xa2\xfe\xa2\x3d\x88\x6d" +
|
|
"\x6b\x0b\x80\x60\xb2\x18\xae\x01\x7a\x95\x11\x13\xcf\xf2\x5d\xd5\x2d\x70\x12\x57\xef\x4e\xb4\x11\xe8\x68\x0d\x48" +
|
|
"\xab\xbd\x24\x74\x10\xab\xfc\x09\x69\x89\xab\x36\x30\x2c\x70\x1a\x56\x82\xd1\x3e\x67\xb9\xd5\xbe\xa8\xba\xbc\xe0" +
|
|
"\xc3\x33\x93\x7e\x84\x88\x89\x0c\x44\xf5\x10\x8e\x96\x30\x78\x08\x2c\xb6\xad\x28\x3e\xc1\xea\xf0\x94\x27\xea\x75" +
|
|
"\x6b\x79\x63\xdc\xa7\x31\xe3\xdf\x22\xad\x84\xa3\x75\xf0\x8f\x9d\x7c\xfc\xde\x7f\x7d\x35\xbc\x01\xb4\x71\x37\xb3" +
|
|
"\xd6\xb2\x25\x3e\x05\x20\x39\x26\xe7\xa4\xc1\xc0\x84\x2e\xdb\xb6\x66\x6b\x1a\x8f\x87\xe4\xa0\xc4\x2c\x6d\xd4\x33" +
|
|
"\xd5\x80\x17\xa0\xc9\xf2\x6e\x17\xe3\xbc\xeb\xba\xc9\xf2\x87\xc9\xf2\x9c\xf6\xca\xf8\x83\x0a\xfa\x68\x25\x83\x99" +
|
|
"\x95\x0d\x5d\xf9\xb0\x61\x24\xdd\xfd\xaa\x57\x4d\x96\xf3\xef\xe0\xa2\xac\xcc\xfc\x4b\x9f\x2f\xe2\x47\x42\xce\x11" +
|
|
"\xf3\x3e\xf5\x66\x43\x06\xfe\xc1\xdb\x57\xc9\x63\x56\xbc\x08\x9f\x22\x7f\xc3\xcf\x11\x43\x05\x64\xe3\x10\xf2\x41" +
|
|
"\x2e\xaa\xfd\xef\x5b\x6d\xcd\xcf\x00\x00\x00\xff\xff\xd4\xd2\x05\x95\xdf\x02\x00\x00")
|
|
|
|
func bindataTemplatesAwsrolestfMaintfBytes() ([]byte, error) {
|
|
return bindataRead(
|
|
_bindataTemplatesAwsrolestfMaintf,
|
|
"templates/aws-roles-tf/main.tf",
|
|
)
|
|
}
|
|
|
|
|
|
|
|
func bindataTemplatesAwsrolestfMaintf() (*asset, error) {
|
|
bytes, err := bindataTemplatesAwsrolestfMaintfBytes()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
info := bindataFileInfo{
|
|
name: "templates/aws-roles-tf/main.tf",
|
|
size: 735,
|
|
md5checksum: "",
|
|
mode: os.FileMode(420),
|
|
modTime: time.Unix(1583150135, 0),
|
|
}
|
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
}
|
|
|
|
var _bindataTemplatesAwss3buckettfDeploysh = []byte(
|
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x90\xb1\x4e\xc3\x30\x10\x86\xf7\x7b\x8a\x1f\x37\x6b\x5a\xb1\x82\x32" +
|
|
"\xf2\x02\x2c\x0c\x08\x55\x87\x73\x51\x4e\x24\x76\x64\x5f\x49\xab\x34\xef\x8e\xc2\x40\x2b\x40\xe9\xe8\xdf\xdf\xaf" +
|
|
"\xef\xee\x36\x77\xbb\x77\x0d\xbb\xdc\x12\x6d\x20\x47\x35\x8c\xad\x04\x70\x38\xc1\xc7\xbe\xe7\x50\xa3\x61\xed\x32" +
|
|
"\x65\x31\x94\x42\xc4\x75\xad\xa6\x31\x70\xb7\x37\x49\x89\x9b\x98\xfa\x7d\x1c\x96\x28\x57\xce\xd1\x25\x64\xbf\x84" +
|
|
"\x55\x31\xdd\x3f\x94\x3c\x0c\xdd\x69\x26\xd2\x06\xaf\x28\x7e\x33\xa8\x2a\xb8\x6f\xc4\xe1\xed\xd1\x5a\x09\x04\x00" +
|
|
"\xeb\xaa\x62\x5a\xfb\x9f\x51\xf2\xc1\xe2\x22\x4e\xf1\x53\x1c\x35\x4a\x97\xd9\xa0\x41\xed\xea\x39\xc6\xf4\x91\x07" +
|
|
"\xf6\x82\x2c\x9d\x78\xc3\x34\x61\xfb\x74\xb4\xc4\xcf\x92\xe3\x21\x79\xc9\xdb\x97\x1f\x66\x9e\x71\x3e\xe3\xbf\x76" +
|
|
"\x90\xf1\x56\xf5\xca\xfa\xf7\x0e\xc5\xda\x4a\xf4\x15\x00\x00\xff\xff\x25\xc5\x00\xaa\xac\x01\x00\x00")
|
|
|
|
func bindataTemplatesAwss3buckettfDeployshBytes() ([]byte, error) {
|
|
return bindataRead(
|
|
_bindataTemplatesAwss3buckettfDeploysh,
|
|
"templates/aws-s3-bucket-tf/deploy.sh",
|
|
)
|
|
}
|
|
|
|
|
|
|
|
func bindataTemplatesAwss3buckettfDeploysh() (*asset, error) {
|
|
bytes, err := bindataTemplatesAwss3buckettfDeployshBytes()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
info := bindataFileInfo{
|
|
name: "templates/aws-s3-bucket-tf/deploy.sh",
|
|
size: 428,
|
|
md5checksum: "",
|
|
mode: os.FileMode(420),
|
|
modTime: time.Unix(1588787379, 0),
|
|
}
|
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
}
|
|
|
|
var _bindataTemplatesAwss3buckettfMaintf = []byte(
|
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x51\x4d\x8b\xdb\x30\x10\xbd\xfb\x57\x0c\xbe\x4b\xa6\xe4\x16\x08\xb4" +
|
|
"\xa1\xb9\xf4\x50\x4a\x5d\xe8\x31\x28\xca\xd8\x16\xb6\x35\x5e\x69\x94\x0f\x12\xfd\xf7\x45\xb6\xb3\x24\x24\x0b\x3b" +
|
|
"\x37\x8d\xde\x7b\xf3\xe6\x0d\xa3\x73\xaa\x22\xd7\xc3\x25\x03\xd8\x29\xdd\xa2\xdd\x43\xee\x17\xf9\xd8\x00\xd8\x05" +
|
|
"\xdd\x22\xc3\x63\xad\x20\xbf\x5c\x40\x96\xac\x18\x4b\x26\x87\xeb\x89\x28\xd7\x23\xfa\xb7\xea\x11\x62\xcc\x47\x01" +
|
|
"\x87\xb5\x21\xfb\x2c\xa0\x06\xe1\x29\x70\x23\xbe\x4d\xb8\x16\xcf\xf0\x54\xab\x64\x45\x4c\x1e\xfc\x84\x3b\x92\x6b" +
|
|
"\xfd\xa0\x34\x6e\x5b\x3c\x6f\x07\x87\x95\x39\x3d\xe2\x8a\xe4\x6d\x73\x62\xa7\xfe\xa2\xa7\xe0\x34\x7a\xb9\xb1\x07" +
|
|
"\xe3\xc8\xf6\x68\x19\x62\x1c\x11\x3f\x71\xe8\xe8\x9c\x3a\x72\x36\x2c\x5e\xb4\xcb\x50\xa5\x01\xb7\x6d\x06\x47\x95" +
|
|
"\xe9\xf0\x8b\x71\xfc\xf8\x5f\xfe\x99\x09\x37\x01\xa5\xbb\x97\x6b\x4e\xde\x05\x1d\x2d\x3a\x51\x85\xae\x13\x9a\x2c" +
|
|
"\x3b\xea\x12\x2d\x66\x31\xcb\x7a\xda\x87\x0e\x1f\x02\x19\x6f\x34\xad\x78\x27\x55\x1b\x5e\x2e\xbd\x6f\x96\x45\x51" +
|
|
"\x1b\xfe\x5e\x1b\x6e\xc2\x4e\xea\x7e\x2f\xad\x3a\x18\xc1\xa8\x1b\x69\x6c\x31\x3e\x8c\xad\x9c\x2a\xd4\xd1\x8b\x0f" +
|
|
"\x59\x59\x1b\x4e\x43\xfd\x62\x3b\xcf\x49\xaa\x2f\x32\x2d\x17\xeb\xf9\xff\x0a\x7d\xf0\xfc\x8f\x7e\x79\xb2\x10\x63" +
|
|
"\x06\x80\x77\x79\x7f\x42\xbf\x3f\xc9\x15\xde\x02\x71\x4a\x29\x8b\xd9\x7b\x00\x00\x00\xff\xff\xa0\x69\x14\x82\x94" +
|
|
"\x02\x00\x00")
|
|
|
|
func bindataTemplatesAwss3buckettfMaintfBytes() ([]byte, error) {
|
|
return bindataRead(
|
|
_bindataTemplatesAwss3buckettfMaintf,
|
|
"templates/aws-s3-bucket-tf/main.tf",
|
|
)
|
|
}
|
|
|
|
|
|
|
|
func bindataTemplatesAwss3buckettfMaintf() (*asset, error) {
|
|
bytes, err := bindataTemplatesAwss3buckettfMaintfBytes()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
info := bindataFileInfo{
|
|
name: "templates/aws-s3-bucket-tf/main.tf",
|
|
size: 660,
|
|
md5checksum: "",
|
|
mode: os.FileMode(420),
|
|
modTime: time.Unix(1587036332, 0),
|
|
}
|
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
}
|
|
|
|
var _bindataTemplatesRdstfDeploysh = []byte(
|
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x90\xb1\x4e\xf4\x30\x10\x84\x7b\x3f\xc5\xfe\xf9\xd3\x9e\x4f\xb4\xa0" +
|
|
"\x94\xbc\x00\x0d\x05\x42\xd6\xc6\xde\xdc\x59\x24\xb6\xe5\xdd\x24\xa0\x5c\xde\x1d\x05\x21\x72\x02\x94\x13\xc5\x75" +
|
|
"\xf6\xec\x8c\x3f\xef\xfc\xff\xb7\xaf\x7d\xd8\xf3\x51\x29\x74\xce\x8b\x8f\x01\x5b\x23\x94\x33\x36\x31\x77\x26\xa6" +
|
|
"\x45\xe2\xaa\x28\xd4\x2a\xa2\x5d\xc4\xaa\x9c\x6e\x6e\x77\x98\x52\xfb\x36\x2b\xe5\x1b\x78\x82\xf2\xbb\x07\xaa\x0a" +
|
|
"\x8a\x0f\x4b\x01\xcf\x77\x72\xa4\xa0\x00\x00\xb6\x51\xe5\xb4\x35\x9f\x61\x87\xbd\xc4\x05\x9c\xe3\x40\x85\x6a\xbc" +
|
|
"\x5a\xff\x06\x3e\x78\x39\xbb\x8e\x31\xbf\x70\x42\x4b\xc0\xd4\x92\x15\x98\x26\xd0\xf7\xaf\x92\xf1\x81\x38\xf6\xd9" +
|
|
"\x12\xeb\xc7\x2f\xcf\x3c\xc3\xe9\x04\xbf\xa5\x03\x8d\x97\xa2\x67\xd4\x9f\x3d\xec\x04\xf3\x81\xa4\xea\xa2\xeb\x5b" +
|
|
"\xd2\xd9\xb1\x76\x28\xa8\x71\x64\xc3\x7d\x1d\x48\x8c\x77\xac\x6d\xec\x3a\x0c\xce\xa4\xec\x07\x14\xfa\x1c\x31\x94" +
|
|
"\x5b\x8d\xfc\x15\xbc\x1e\x8d\x0f\x2c\x18\x2c\x5d\x1d\x60\x68\xa0\x70\xa5\x45\x52\x64\x39\x64\x62\xe3\xea\x0b\xef" +
|
|
"\xbf\x07\x00\x00\xff\xff\x10\x3a\x85\x28\xee\x02\x00\x00")
|
|
|
|
func bindataTemplatesRdstfDeployshBytes() ([]byte, error) {
|
|
return bindataRead(
|
|
_bindataTemplatesRdstfDeploysh,
|
|
"templates/rds-tf/deploy.sh",
|
|
)
|
|
}
|
|
|
|
|
|
|
|
func bindataTemplatesRdstfDeploysh() (*asset, error) {
|
|
bytes, err := bindataTemplatesRdstfDeployshBytes()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
info := bindataFileInfo{
|
|
name: "templates/rds-tf/deploy.sh",
|
|
size: 750,
|
|
md5checksum: "",
|
|
mode: os.FileMode(420),
|
|
modTime: time.Unix(1588787322, 0),
|
|
}
|
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
}
|
|
|
|
var _bindataTemplatesRdstfMaintf = []byte(
|
|
"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x55\x5d\x6b\xdb\x4a\x10\x7d\xd7\xaf\x58\xfc\x2e\x39\x97\xcb\xe5\x42" +
|
|
"\x20\x70\x73\x6b\xb7\xa4\xd0\x12\x92\xb4\x0f\x7d\x11\x2b\x69\x24\x0f\xde\x9d\x55\x76\x56\x71\x1c\xc7\xff\xbd\xac" +
|
|
"\x24\xdb\x12\x96\xbf\x08\xd5\x53\x32\x9a\x73\xf6\xec\xd1\x99\xb1\x03\x6b\x65\x6e\xac\x16\xab\x40\x88\x44\xa6\x73" +
|
|
"\xa0\x4c\x8c\xf8\xef\x51\x5d\x10\x22\xa9\xd2\x39\x38\xd1\x7f\x6e\xc4\x88\xe4\x0b\x86\x89\xa4\x79\xb8\xa5\x08\x53" +
|
|
"\xa3\xb5\xa4\x2c\x64\x27\x1d\x8c\x6a\xb8\x85\x02\x0d\xed\xc3\x65\x19\xb2\xa9\xdc\x2c\xfc\xab\xe9\x9b\xc3\x52\xec" +
|
|
"\x3d\x37\x62\x64\x33\x6e\x1a\x16\xc6\xce\xb9\x94\x29\xc4\x73\x58\xc6\xa5\x85\x1c\x5f\xdb\x86\xe6\x3c\x1e\xaf\x56" +
|
|
"\x22\x9a\xbe\x3a\x2b\x1f\x80\x4d\x65\x53\xe0\x68\x22\x9d\x4c\x24\x43\x74\x47\xec\x24\xa5\xf0\x5d\x6a\x10\xeb\x75" +
|
|
"\xc3\x59\x5a\x93\xa3\x82\xbd\x43\x53\x9d\x35\x0d\x32\x55\x83\xaa\x1a\x53\x42\xb3\x20\xb0\x61\x5e\x29\x15\xa6\x86" +
|
|
"\x9c\x35\xca\xc3\xd6\xc1\x3a\x08\xb4\xc9\x2a\x05\x8d\xfe\xda\xc9\x46\x51\x87\xa3\x40\x77\x7d\xcd\x3c\xbb\x1e\x8f" +
|
|
"\x0b\x74\xff\x15\xe8\x66\x55\x12\xa5\x3a\x8b\x6a\x6b\x1d\xa4\xb3\x08\x69\x5c\xff\x83\x94\x5b\x39\xb6\x19\x47\x05" +
|
|
"\x3a\x7f\x06\xd0\x0b\x5a\x43\x1a\xc8\xd5\x6c\x03\x57\x9f\x76\x5a\xde\xc5\x73\x65\x9c\xbf\x78\x20\x04\xb6\x56\xc4" +
|
|
"\xe4\xbd\x18\xc4\x0e\xdb\xd6\x63\x29\x25\xf3\xc2\xd8\x6c\x73\x9f\x63\x2c\xf7\x9b\xde\x1e\x43\xc5\x60\xbb\xae\x1e" +
|
|
"\x63\xf8\xe1\x7b\x3b\xe8\x40\x08\x6d\x08\x9d\xb1\x48\x45\x7c\x89\x96\x6f\x5b\xd8\xb0\xaa\x0e\xed\x4e\xe0\xb9\x94" +
|
|
"\x03\x32\xb3\xb6\x8b\xcf\x20\x9a\x24\xde\x67\x16\xef\x42\x57\xec\x9e\xcc\x57\x36\xd4\xa8\xda\xb0\xc4\x4e\x16\xec" +
|
|
"\x59\x82\x46\xd8\x13\x48\xdd\x92\xfa\x3f\xa3\xfd\xef\xe4\x1f\x0d\x19\xa6\x18\xca\xb2\xf4\xc1\xf3\xcd\x13\x28\x95" +
|
|
"\x59\xfa\x6c\x44\xed\x44\x84\x03\xe5\xc7\x2a\xf7\x53\xb6\x19\x97\x2d\x51\x9d\xfb\xb3\x8f\xed\x66\xf5\xb2\xa4\xd6" +
|
|
"\x06\xba\x13\x57\x0c\x84\x58\xad\x42\x81\xf9\x61\x5f\x1f\xf1\x0d\xee\xe8\x4b\xd2\xb0\x32\xbe\x9d\x8a\x7d\x1f\xe0" +
|
|
"\xe9\x41\x31\xf4\xe0\xff\x5c\x6d\xde\x50\x76\xa6\x8c\x49\x32\x7d\x75\x40\x8c\x86\xb8\xfd\xac\x49\x0c\xbb\xd2\xa9" +
|
|
"\x70\x74\xd0\xfb\x09\xb9\x4c\xca\x03\xc8\xcc\x90\x5a\xd6\x81\xad\xf1\xb6\xad\x34\xa9\x3f\x2e\xa5\x87\xfe\x83\x52" +
|
|
"\xb6\x73\x7d\x9e\x9c\xce\x40\x7f\x4c\xd2\x3d\x58\xff\x7b\xe6\x17\xdf\x1d\x31\x16\x33\xc7\x53\x92\x89\x82\xac\xdd" +
|
|
"\x7d\xbb\xf7\x31\xb6\x0d\x31\xb4\x1d\x27\x56\xe1\x61\xea\x8f\xaa\xbe\x5d\xf0\x66\x5d\x7f\x52\x92\xdb\x88\xc9\x05" +
|
|
"\xc7\xdb\x8d\x9f\xd6\xf5\xe3\x0a\xf7\x68\x7a\x23\x79\x99\xa4\xff\x65\x3a\xaf\xca\x09\x72\xc7\xbc\xa4\xae\xc5\x16" +
|
|
"\x1c\x90\x43\x43\x71\x09\x16\x8d\xf7\xed\x6a\x6f\xd6\x0e\xf7\xfe\x7b\x48\x0b\x19\x77\x64\x53\x57\xca\xe1\xed\xaf" +
|
|
"\xbe\x20\xed\x8b\xb1\x7c\x13\x37\xc2\xd9\x0a\x2e\x4f\x0b\x3f\xab\xcf\x52\xa3\x5a\xb6\xe9\xe0\x67\x15\xe7\x4d\xe1" +
|
|
"\x44\x18\x76\xc8\x0f\x98\xec\x59\xa6\x54\x20\xc1\x4f\xb0\x7e\x3d\x74\x64\x40\x5d\x8f\x5f\xda\x17\xa7\xe5\xf4\x89" +
|
|
"\x0e\xaa\x5a\x07\xbf\x03\x00\x00\xff\xff\xd6\xb4\x35\x4c\x39\x0a\x00\x00")
|
|
|
|
func bindataTemplatesRdstfMaintfBytes() ([]byte, error) {
|
|
return bindataRead(
|
|
_bindataTemplatesRdstfMaintf,
|
|
"templates/rds-tf/main.tf",
|
|
)
|
|
}
|
|
|
|
|
|
|
|
func bindataTemplatesRdstfMaintf() (*asset, error) {
|
|
bytes, err := bindataTemplatesRdstfMaintfBytes()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
info := bindataFileInfo{
|
|
name: "templates/rds-tf/main.tf",
|
|
size: 2617,
|
|
md5checksum: "",
|
|
mode: os.FileMode(420),
|
|
modTime: time.Unix(1588771288, 0),
|
|
}
|
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
}
|
|
|
|
|
|
//
|
|
// Asset loads and returns the asset for the given name.
|
|
// It returns an error if the asset could not be found or
|
|
// could not be loaded.
|
|
//
|
|
func Asset(name string) ([]byte, error) {
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
if f, ok := _bindata[cannonicalName]; ok {
|
|
a, err := f()
|
|
if err != nil {
|
|
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
|
|
}
|
|
return a.bytes, nil
|
|
}
|
|
return nil, &os.PathError{Op: "open", Path: name, Err: os.ErrNotExist}
|
|
}
|
|
|
|
//
|
|
// MustAsset is like Asset but panics when Asset would return an error.
|
|
// It simplifies safe initialization of global variables.
|
|
// nolint: deadcode
|
|
//
|
|
func MustAsset(name string) []byte {
|
|
a, err := Asset(name)
|
|
if err != nil {
|
|
panic("asset: Asset(" + name + "): " + err.Error())
|
|
}
|
|
|
|
return a
|
|
}
|
|
|
|
//
|
|
// AssetInfo loads and returns the asset info for the given name.
|
|
// It returns an error if the asset could not be found or could not be loaded.
|
|
//
|
|
func AssetInfo(name string) (os.FileInfo, error) {
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
if f, ok := _bindata[cannonicalName]; ok {
|
|
a, err := f()
|
|
if err != nil {
|
|
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
|
|
}
|
|
return a.info, nil
|
|
}
|
|
return nil, &os.PathError{Op: "open", Path: name, Err: os.ErrNotExist}
|
|
}
|
|
|
|
//
|
|
// AssetNames returns the names of the assets.
|
|
// nolint: deadcode
|
|
//
|
|
func AssetNames() []string {
|
|
names := make([]string, 0, len(_bindata))
|
|
for name := range _bindata {
|
|
names = append(names, name)
|
|
}
|
|
return names
|
|
}
|
|
|
|
//
|
|
// _bindata is a table, holding each asset generator, mapped to its name.
|
|
//
|
|
var _bindata = map[string]func() (*asset, error){
|
|
"templates/aws-roles-tf/deploy.sh": bindataTemplatesAwsrolestfDeploysh,
|
|
"templates/aws-roles-tf/main.tf": bindataTemplatesAwsrolestfMaintf,
|
|
"templates/aws-s3-bucket-tf/deploy.sh": bindataTemplatesAwss3buckettfDeploysh,
|
|
"templates/aws-s3-bucket-tf/main.tf": bindataTemplatesAwss3buckettfMaintf,
|
|
"templates/rds-tf/deploy.sh": bindataTemplatesRdstfDeploysh,
|
|
"templates/rds-tf/main.tf": bindataTemplatesRdstfMaintf,
|
|
}
|
|
|
|
//
|
|
// AssetDir returns the file names below a certain
|
|
// directory embedded in the file by go-bindata.
|
|
// For example if you run go-bindata on data/... and data contains the
|
|
// following hierarchy:
|
|
// data/
|
|
// foo.txt
|
|
// img/
|
|
// a.png
|
|
// b.png
|
|
// then AssetDir("data") would return []string{"foo.txt", "img"}
|
|
// AssetDir("data/img") would return []string{"a.png", "b.png"}
|
|
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
|
|
// AssetDir("") will return []string{"data"}.
|
|
//
|
|
func AssetDir(name string) ([]string, error) {
|
|
node := _bintree
|
|
if len(name) != 0 {
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
pathList := strings.Split(cannonicalName, "/")
|
|
for _, p := range pathList {
|
|
node = node.Children[p]
|
|
if node == nil {
|
|
return nil, &os.PathError{
|
|
Op: "open",
|
|
Path: name,
|
|
Err: os.ErrNotExist,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if node.Func != nil {
|
|
return nil, &os.PathError{
|
|
Op: "open",
|
|
Path: name,
|
|
Err: os.ErrNotExist,
|
|
}
|
|
}
|
|
rv := make([]string, 0, len(node.Children))
|
|
for childName := range node.Children {
|
|
rv = append(rv, childName)
|
|
}
|
|
return rv, nil
|
|
}
|
|
|
|
|
|
type bintree struct {
|
|
Func func() (*asset, error)
|
|
Children map[string]*bintree
|
|
}
|
|
|
|
var _bintree = &bintree{Func: nil, Children: map[string]*bintree{
|
|
"templates": {Func: nil, Children: map[string]*bintree{
|
|
"aws-roles-tf": {Func: nil, Children: map[string]*bintree{
|
|
"deploy.sh": {Func: bindataTemplatesAwsrolestfDeploysh, Children: map[string]*bintree{}},
|
|
"main.tf": {Func: bindataTemplatesAwsrolestfMaintf, Children: map[string]*bintree{}},
|
|
}},
|
|
"aws-s3-bucket-tf": {Func: nil, Children: map[string]*bintree{
|
|
"deploy.sh": {Func: bindataTemplatesAwss3buckettfDeploysh, Children: map[string]*bintree{}},
|
|
"main.tf": {Func: bindataTemplatesAwss3buckettfMaintf, Children: map[string]*bintree{}},
|
|
}},
|
|
"rds-tf": {Func: nil, Children: map[string]*bintree{
|
|
"deploy.sh": {Func: bindataTemplatesRdstfDeploysh, Children: map[string]*bintree{}},
|
|
"main.tf": {Func: bindataTemplatesRdstfMaintf, Children: map[string]*bintree{}},
|
|
}},
|
|
}},
|
|
}}
|
|
|
|
// RestoreAsset restores an asset under the given directory
|
|
func RestoreAsset(dir, name string) error {
|
|
data, err := Asset(name)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
info, err := AssetInfo(name)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
|
|
}
|
|
|
|
// RestoreAssets restores an asset under the given directory recursively
|
|
func RestoreAssets(dir, name string) error {
|
|
children, err := AssetDir(name)
|
|
// File
|
|
if err != nil {
|
|
return RestoreAsset(dir, name)
|
|
}
|
|
// Dir
|
|
for _, child := range children {
|
|
err = RestoreAssets(dir, filepath.Join(name, child))
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func _filePath(dir, name string) string {
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
|
|
}
|