Documentation ¶
Index ¶
- func CreateCloudformationParameters(parameterMap *map[string]string) []*cloudformation.Parameter
- func GetOutputValue(stack cloudformation.Stack, key string) string
- type Executor
- type IaaSExecutor
- func (executor IaaSExecutor) CreateStack(templateBody string, stackName string, parameterMap *map[string]string, ...) error
- func (executor IaaSExecutor) CreateStackFromS3(templateURL string, stackName string, parameterMap *map[string]string, ...) error
- func (executor IaaSExecutor) PauseUntilCreateFinished(stackName string) error
- func (executor IaaSExecutor) PauseUntilUpdateFinished(stackName string) error
- func (executor IaaSExecutor) UpdateStack(templateBody string, stackName string, parameterMap *map[string]string, ...) error
- type Resource
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCloudformationParameters ¶
func CreateCloudformationParameters(parameterMap *map[string]string) []*cloudformation.Parameter
CreateCloudformationParameters is a method to convert a map of parameter key value pairs into AWS Parameters
func GetOutputValue ¶
func GetOutputValue(stack cloudformation.Stack, key string) string
GetOutputValue method will retrieve an output value from Output array
Types ¶
type Executor ¶
type Executor interface { CreateStack(templateBody string, stackName string, parameterMap *map[string]string, tags *map[string]string) error CreateStackFromS3(templateURL string, stackName string, parameterMap *map[string]string, tags *map[string]string) error UpdateStack(templateBody string, stackName string, parameterMap *map[string]string, tags *map[string]string) error PauseUntilCreateFinished(stackName string) error PauseUntilUpdateFinished(stackName string) error }
Executor is an interface to execute and create stacks
type IaaSExecutor ¶
type IaaSExecutor struct {
Client cloudformationiface.CloudFormationAPI
}
IaaSExecutor struct used to create cloudformation stacks
func (IaaSExecutor) CreateStack ¶
func (executor IaaSExecutor) CreateStack(templateBody string, stackName string, parameterMap *map[string]string, tags *map[string]string) error
CreateStack is a general method to create aws cloudformation stacks
func (IaaSExecutor) CreateStackFromS3 ¶
func (executor IaaSExecutor) CreateStackFromS3(templateURL string, stackName string, parameterMap *map[string]string, tags *map[string]string) error
CreateStackFromS3 is a general method to create aws cloudformation stacks
func (IaaSExecutor) PauseUntilCreateFinished ¶
func (executor IaaSExecutor) PauseUntilCreateFinished(stackName string) error
PauseUntilCreateFinished is a method to wait on the status of a cloudformation stack until it finishes
func (IaaSExecutor) PauseUntilUpdateFinished ¶
func (executor IaaSExecutor) PauseUntilUpdateFinished(stackName string) error
PauseUntilUpdateFinished is a method to wait on the status of a cloudformation stack until it finishes
func (IaaSExecutor) UpdateStack ¶
func (executor IaaSExecutor) UpdateStack(templateBody string, stackName string, parameterMap *map[string]string, tags *map[string]string) error
UpdateStack is a method to update Cloudformation stack
type Resource ¶
type Resource interface {
GetStack(stackName *string) (cloudformation.Stack, error)
}
Resource is a generic interface for retrieving information on a infrastruture stack
type Stack ¶
type Stack struct {
Client cloudformationiface.CloudFormationAPI
}
Stack is a struct representing an AWS Cloudformation Stack