cloudformation

package
v0.0.0-...-d29c414 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cloudformation allows to interact with cloudformation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStack

func CreateStack(t *testing.T, CFOptions *Options)

CreateStack creates the supplied stack throws error

func CreateStackE

func CreateStackE(t *testing.T, CFOptions *Options) error

CreateStackE creates the supplied stack returns possible error

func CreateStackStr

func CreateStackStr(t *testing.T, CFOptions *Options, templateBody string)

CreateStackStr creates stack from supplied templateBody throws error

func CreateStackStrE

func CreateStackStrE(t *testing.T, CFOptions *Options, templateBody string) error

CreateStackStrE creates stack from supplied templateBody returns error

func DeleteStack

func DeleteStack(t *testing.T, CFOptions *Options)

DeleteStack delets the supplied stack

func DeleteStackE

func DeleteStackE(t *testing.T, CFOptions *Options) error

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

func ListExports(t *testing.T, CFOptions *Options) []*aws_cf.Export

ListExports returns a list of Exports of a specified stack

func ListOutputs

func ListOutputs(t *testing.T, CFOptions *Options) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL