Documentation
¶
Index ¶
- Constants
- Variables
- type CFNManager
- func (cm CFNManager) CreateChangeSet(input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)
- func (cm CFNManager) CreateChangeSetWithWait(ctx context.Context, input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)
- func (cm CFNManager) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
- func (cm CFNManager) CreateStackWithWait(ctx context.Context, input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
- func (cm CFNManager) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
- func (cm CFNManager) DeleteStackWithWait(ctx context.Context, input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
- func (cm CFNManager) DescribeChangeSet(stackName string, changeSetName string) (*cloudformation.DescribeChangeSetOutput, error)
- func (cm CFNManager) DescribeStacks(stackName string) (*cloudformation.DescribeStacksOutput, error)
- func (cm CFNManager) ExecuteChangeSet(ctx context.Context, input *cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error)
- func (cm CFNManager) ExecuteChangeSetWithWait(ctx context.Context, input *cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error)
- func (cm CFNManager) ListStacks() (*cloudformation.ListStacksOutput, error)
- func (cm CFNManager) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
- func (cm CFNManager) UpdateStackWithWait(ctx context.Context, input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
- func (cm CFNManager) WaitChangeSetCreateComplete(stackName string, changesetName string) error
- func (cm CFNManager) WaitStackCreateComplete(stackName string) error
- func (cm CFNManager) WaitStackDeleteComplete(stackName string) error
- func (cm CFNManager) WaitStackUpdateComplete(stackName string) error
- type Stack
- func (s *Stack) ApplyChanges(ctx context.Context, cm CFNManager) error
- func (s *Stack) ApplyDryRun(ctx context.Context, cm CFNManager) error
- func (s *Stack) Destroy(ctx context.Context, cm CFNManager) error
- func (s *Stack) DestroyDryRun(ctx context.Context, cm CFNManager) error
- func (s *Stack) Validate(index int) error
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 ¶
func (CFNManager) CreateChangeSet ¶
func (cm CFNManager) CreateChangeSet(input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)
func (CFNManager) CreateChangeSetWithWait ¶
func (cm CFNManager) CreateChangeSetWithWait(ctx context.Context, input *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error)
func (CFNManager) CreateStack ¶
func (cm CFNManager) CreateStack(input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
////// MUTABLE OPERATIONS ////////
func (CFNManager) CreateStackWithWait ¶
func (cm CFNManager) CreateStackWithWait(ctx context.Context, input *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
////// MUTABLE WAIT OPERATIONS ////////
func (CFNManager) DeleteStack ¶
func (cm CFNManager) DeleteStack(input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
func (CFNManager) DeleteStackWithWait ¶
func (cm CFNManager) DeleteStackWithWait(ctx context.Context, input *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
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) ExecuteChangeSet ¶
func (cm CFNManager) ExecuteChangeSet(ctx context.Context, input *cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error)
func (CFNManager) ExecuteChangeSetWithWait ¶
func (cm CFNManager) ExecuteChangeSetWithWait(ctx context.Context, input *cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error)
func (CFNManager) ListStacks ¶
func (cm CFNManager) ListStacks() (*cloudformation.ListStacksOutput, error)
func (CFNManager) UpdateStack ¶
func (cm CFNManager) UpdateStack(input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
func (CFNManager) UpdateStackWithWait ¶
func (cm CFNManager) UpdateStackWithWait(ctx context.Context, input *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
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) DestroyDryRun ¶
func (s *Stack) DestroyDryRun(ctx context.Context, cm CFNManager) error
Click to show internal directories.
Click to hide internal directories.