Documentation ¶
Overview ¶
The dc package contains types and functions to facilitate parsing user-supplied configuration like tags and parameters, which are used for the deploy and forecast commands
Index ¶
- Constants
- Variables
- func GetParameters(template cft.Template, combinedParameters map[string]string, ...) []types.Parameter
- func GetStackName(stackName string, base string) string
- func ListToMap(name string, in []string) map[string]string
- func MakeTags(tags map[string]string) []types.Tag
- type DeployConfig
Constants ¶
View Source
const MaxStackNameLength = 128
Variables ¶
View Source
var FixStackNameRe *regexp.Regexp
Functions ¶
func GetParameters ¶
func GetParameters( template cft.Template, combinedParameters map[string]string, old []types.Parameter, stackExists bool, yes bool, ignoreUnknownParams bool) []types.Parameter
GetParameters checks the combined params supplied as args and in a file and asks the user to supply any values that are missing
func GetStackName ¶
GetStackName returns stackName if it is not blank, otherwise it creates a name based on the template file name
Types ¶
type DeployConfig ¶
DeployConfig represents the user-supplied configuration for a deployment This is also used by the forecast command
func GetDeployConfig ¶
func GetDeployConfig( tags []string, params []string, configFilePath string, base string, template cft.Template, stack types.Stack, stackExists bool, yes bool, ignoreUnknownParams bool) (*DeployConfig, error)
GetDeployConfig populates an instance of DeployConfig based on user-supplied values
Click to show internal directories.
Click to hide internal directories.