Documentation ¶
Overview ¶
Package cloudformation allows to interact with cloudformation
Index ¶
- func CreateStack(t *testing.T, CFOptions *Options)
- func CreateStackE(t *testing.T, CFOptions *Options) error
- func CreateStackStr(t *testing.T, CFOptions *Options, templateBody string)
- func CreateStackStrE(t *testing.T, CFOptions *Options, templateBody string) error
- func DeleteStack(t *testing.T, CFOptions *Options)
- func DeleteStackE(t *testing.T, CFOptions *Options) error
- func FilterResources(list []*cloudformation.StackResource, CmpID string) string
- func ListExports(t *testing.T, CFOptions *Options) []*aws_cf.Export
- func ListOutputs(t *testing.T, CFOptions *Options) error
- func ListResources(t *testing.T, CFOptions *Options) []*cloudformation.StackResource
- func ListResourcesE(t *testing.T, CFOptions *Options) ([]*cloudformation.StackResource, error)
- func NewCFClient(t *testing.T, Region string) *aws_cf.CloudFormation
- func NewCFClientE(Region string) (*aws_cf.CloudFormation, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStack ¶
CreateStack creates the supplied stack throws error
func CreateStackE ¶
CreateStackE creates the supplied stack returns possible error
func CreateStackStr ¶
CreateStackStr creates stack from supplied templateBody throws error
func CreateStackStrE ¶
CreateStackStrE creates stack from supplied templateBody returns error
func DeleteStack ¶
DeleteStack delets the supplied stack
func DeleteStackE ¶
DeleteStackE delets the supplied stack returns possible error
func FilterResources ¶
func FilterResources(list []*cloudformation.StackResource, CmpID string) string
FilterResources filters a list of CF Resources for CmpID
func ListExports ¶
ListExports returns a list of Exports of a specified stack
func ListOutputs ¶
ListOutputs does nothing
func ListResources ¶
func ListResources(t *testing.T, CFOptions *Options) []*cloudformation.StackResource
ListResources returns a list of all physical resources of the supplied stack
func ListResourcesE ¶
func ListResourcesE(t *testing.T, CFOptions *Options) ([]*cloudformation.StackResource, error)
ListResourcesE returns a list of all physical resources of the supplied stack returns a possible error
func NewCFClient ¶
func NewCFClient(t *testing.T, Region string) *aws_cf.CloudFormation
NewCFClient allocates a new CF client
func NewCFClientE ¶
func NewCFClientE(Region string) (*aws_cf.CloudFormation, error)
NewCFClientE allocates a new CF and possibly an error
Types ¶
type Options ¶
type Options struct { CFFile string //Path to the Cloudformation template, yes singular currently! StackName string //The name of the stack to be. AWSRegion string //AWS Region Parameters []*aws_cf.Parameter //Template Parameters as aws cloudformation sdk params. Regexes map[string]string //replace sth in template with sth. }
Options represents a set of options to create a CF Stack out of.