aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRole

func AssumeRole(account, region, roleName string) aws.Config

func BuildParameters

func BuildParameters(pw *types.ProviderWebhook) []cftypes.Parameter

func CreateNetwork

func CreateNetwork(ctx context.Context, cfg aws.Config, pw *types.ProviderWebhook) (string, error)

func CreateNetworkWithChangeSet

func CreateNetworkWithChangeSet(ctx context.Context, cfg aws.Config, pw *types.ProviderWebhook) (string, error)

Types

type ChangeSetResult

type ChangeSetResult struct {
	ID   string
	Type cftypes.ChangeSetType
}

type Deployer

type Deployer struct {
	Client *cloudformation.Client
}

func NewDeployer

func NewDeployer(cli *cloudformation.Client) *Deployer

func (*Deployer) CheckChangeSet

func (d *Deployer) CheckChangeSet(ctx context.Context, stackName, ID string) error

func (*Deployer) CreateChangeSet

func (d *Deployer) CreateChangeSet(ctx context.Context, input *DeployerInput) (*ChangeSetResult, error)

func (*Deployer) CreateStack

func (d *Deployer) CreateStack(ctx context.Context, input *DeployerInput) (*StackResult, error)

func (*Deployer) ExecuteChangeSet

func (d *Deployer) ExecuteChangeSet(ctx context.Context, stackName, ID string) error

func (*Deployer) HasStack

func (d *Deployer) HasStack(ctx context.Context, name string) (bool, error)

func (*Deployer) WaitChangeSet

func (d *Deployer) WaitChangeSet(ctx context.Context, stackName, ID string) error

func (*Deployer) WaitExecute

func (d *Deployer) WaitExecute(ctx context.Context, stackName string, t cftypes.ChangeSetType) error

type DeployerInput

type DeployerInput struct {
	StackName   string
	NetworkID   string
	Params      []cftypes.Parameter
	TemplateURL string
}

type StackResult

type StackResult struct {
	ID string
}

Jump to

Keyboard shortcuts

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