cfn

package
v0.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Regions string = "" /* 219-byte string literal not displayed */

Variables

View Source
var CfnStatus []string = []string{"CREATE_COMPLETE", "UPDATE_COMPLETE", "ROLLBACK_COMPLETE", "UPDATE_ROLLBACK_COMPLETE", "UPDATE_ROLLBACK_FAILED", "ROLLBACK_FAILED", "DELETE_FAILED", "CREATE_IN_PROGRESS", "ROLLBACK_IN_PROGRESS", "DELETE_IN_PROGRESS", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", "UPDATE_ROLLBACK_IN_PROGRESS", "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", "REVIEW_IN_PROGRESS"}

Details on CFN Status: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html

Functions

This section is empty.

Types

type CFNManager

type CFNManager struct {
	Session *session.Session
}

func (CFNManager) CreateStack

////// MUTABLE OPERATIONS ////////

func (CFNManager) CreateStackWithWait

////// MUTABLE WAIT OPERATIONS ////////

func (CFNManager) DeleteStack

func (CFNManager) DeleteStackWithWait

func (CFNManager) DescribeChangeSet

func (cm CFNManager) DescribeChangeSet(stackName string, changeSetName string) (*cloudformation.DescribeChangeSetOutput, error)

func (CFNManager) DescribeStacks

func (cm CFNManager) DescribeStacks(stackName string) (*cloudformation.DescribeStacksOutput, error)

////// READ OPERATIONS ////////

func (CFNManager) ListStacks

func (cm CFNManager) ListStacks() (*cloudformation.ListStacksOutput, error)

func (CFNManager) UpdateStack

func (CFNManager) UpdateStackWithWait

func (CFNManager) WaitChangeSetCreateComplete

func (cm CFNManager) WaitChangeSetCreateComplete(stackName string, changesetName string) error

func (CFNManager) WaitStackCreateComplete

func (cm CFNManager) WaitStackCreateComplete(stackName string) error

////// WAIT OPERATIONS ////////

func (CFNManager) WaitStackDeleteComplete

func (cm CFNManager) WaitStackDeleteComplete(stackName string) error

func (CFNManager) WaitStackUpdateComplete

func (cm CFNManager) WaitStackUpdateComplete(stackName string) error

type Stack

type Stack struct {
	TemplateFile string            `yaml:"template_file,omitempty"`
	TemplateURL  string            `yaml:"template_url,omitempty"`
	StackName    string            `yaml:"stack_name"`
	Capabilities []string          `yaml:"capabilities,omitempty"`
	Parameters   map[string]string `yaml:"parameters,omitempty"`
	// ParametersFile   string            `yaml:"parameters_file"`
	Tags             map[string]string `yaml:"tags,omitempty"`
	TimeoutInMinutes int64             `yaml:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Stack) ApplyChanges

func (s *Stack) ApplyChanges(ctx context.Context, cm CFNManager) error

func (*Stack) ApplyDryRun

func (s *Stack) ApplyDryRun(ctx context.Context, cm CFNManager) error

func (*Stack) Destroy

func (s *Stack) Destroy(ctx context.Context, cm CFNManager) error

func (*Stack) DestroyDryRun

func (s *Stack) DestroyDryRun(ctx context.Context, cm CFNManager) error

func (*Stack) Validate

func (s *Stack) Validate(index int) error

Stack is valid only when it satisfies all the below mentioned conditions: - stack_name can't be empty - one of template_url or template_file is mandatory, if both provided results into error

Jump to

Keyboard shortcuts

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