Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteOpts ¶
type DeleteResult ¶
type DeleteResult struct {
FinalStatus string
DeleteStackOutput *cloudformation.DeleteStackOutput
}
type DeployOptFunc ¶ added in v0.6.0
type DeployOptFunc func(*DeployOpts)
func WithConfirm ¶ added in v0.6.0
func WithConfirm(confirm bool) DeployOptFunc
WithConfirm adjusts the Confirm variable in the deployment options.
type DeployOpts ¶
type DeployOpts struct {
// Template to deploy. Can be either
// a URL or an inline JSON/YAML string.
Template string
// Params are CloudFormation parameters
Params []types.Parameter
// Tags to associate with the stack
Tags map[string]string
// StackName is the name of the deployed stack
StackName string
// RoleARN is an optional deployment role to use
RoleARN string
// Confirm will skip interactive confirmations
// if set to tru
Confirm bool
}
type DeployResult ¶
type DeployResult struct {
FinalStatus string
}
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
Deployer contains methods to interactively manage CloudFormations via a CLI.
func NewFromConfig ¶
NewFromConfig creates a Deployer from an existing AWS config.
func (*Deployer) Delete ¶
func (b *Deployer) Delete(ctx context.Context, opts DeleteOpts) (*DeleteResult, error)
Delete a CloudFormation stack and returns the final status
func (*Deployer) Deploy ¶
func (b *Deployer) Deploy(ctx context.Context, opts DeployOpts) (*DeployResult, error)
Deploy deploys a stack and returns the final status template can be either a URL or a template body
Click to show internal directories.
Click to hide internal directories.