Documentation ¶
Index ¶
- func GetParamMap(c *cli.Context) map[string]string
- func GetStackName(manifestFile *manifest.Manifest, fileName, environment, stackNameFlag string) string
- func ResolveEnvironment(envFile string, env string) types.TemplateObject
- func ResolveParameters(c *cli.Context, cfYaml YamlCloudformation, manifestFile *manifest.Manifest) []*awsCF.Parameter
- func ResolveParametersS3(c *cli.Context, manifestFile *manifest.Manifest) []*awsCF.Parameter
- type GenerateParams
- type YamlCloudformation
- type YamlConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamMap ¶
GetParamMap retrives the --param if any, for the map of Parameters in the template
func GetStackName ¶
func GetStackName(manifestFile *manifest.Manifest, fileName, environment, stackNameFlag string) string
GetStackName cleaned to fix AWS requirements
func ResolveEnvironment ¶
func ResolveEnvironment(envFile string, env string) types.TemplateObject
ResolveEnvironment loads the correct configs/environment.yaml ValueMap for the specified env
func ResolveParameters ¶
func ResolveParameters( c *cli.Context, cfYaml YamlCloudformation, manifestFile *manifest.Manifest, ) []*awsCF.Parameter
ResolveParameters for the template
Types ¶
type GenerateParams ¶
type GenerateParams struct { Filename string EnvFile string Env string GenerateDefaultOutputs bool ParamMap map[string]string Plugins []*plugins.PluginLoaded }
GenerateParams are required to generate a cloudformation yaml template
type YamlCloudformation ¶
type YamlCloudformation struct { AWSTemplateFormatVersion string `yaml:"AWSTemplateFormatVersion,omitempty"` Description string `yaml:"Description,omitempty"` Metadata types.TemplateObject `yaml:"Metadata,omitempty"` Parameters types.TemplateObject `yaml:"Parameters,omitempty"` Mappings types.TemplateObject `yaml:"Mappings,omitempty"` Conditions types.TemplateObject `yaml:"Conditions,omitempty"` Transform types.TemplateObject `yaml:"Transform,omitempty"` Resources types.TemplateObject `yaml:"Resources"` Outputs types.TemplateObject `yaml:"Outputs,omitempty"` }
YamlCloudformation -
func GenerateYamlTemplate ¶ added in v0.3.0
func GenerateYamlTemplate(params GenerateParams) (compiledTemplate YamlCloudformation, err error)
GenerateYamlTemplate - generate a cloudformation template
type YamlConfig ¶
type YamlConfig struct { AWSTemplateFormatVersion string `yaml:"AWSTemplateFormatVersion,omitempty"` Description string `yaml:"Description,omitempty"` Metadata types.TemplateObject `yaml:"Metadata,omitempty"` Parameters types.TemplateObject `yaml:"Parameters,omitempty"` Mappings types.TemplateObject `yaml:"Mappings,omitempty"` Conditions types.TemplateObject `yaml:"Conditions,omitempty"` Transform types.TemplateObject `yaml:"Transform,omitempty"` Resources map[string]types.CfResource `yaml:"Resources"` Outputs types.TemplateObject `yaml:"Outputs,omitempty"` }
YamlConfig -
Click to show internal directories.
Click to hide internal directories.