Documentation ¶
Index ¶
- func AssumeRole(account, region, roleName string) aws.Config
- func BuildParameters(pw *types.ProviderWebhook) []cftypes.Parameter
- func CreateNetwork(ctx context.Context, cfg aws.Config, pw *types.ProviderWebhook) (string, error)
- func CreateNetworkWithChangeSet(ctx context.Context, cfg aws.Config, pw *types.ProviderWebhook) (string, error)
- func LambdaHandler(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
- type ChangeSetResult
- type Deployer
- func (d *Deployer) CheckChangeSet(ctx context.Context, stackName, ID string) error
- func (d *Deployer) CreateChangeSet(ctx context.Context, input *DeployerInput) (*ChangeSetResult, error)
- func (d *Deployer) CreateStack(ctx context.Context, input *DeployerInput) (*StackResult, error)
- func (d *Deployer) ExecuteChangeSet(ctx context.Context, stackName, ID string) error
- func (d *Deployer) HasStack(ctx context.Context, name string) (bool, error)
- func (d *Deployer) WaitChangeSet(ctx context.Context, stackName, ID string) error
- func (d *Deployer) WaitExecute(ctx context.Context, stackName string, t cftypes.ChangeSetType) error
- type DeployerInput
- type StackResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssumeRole ¶
func BuildParameters ¶
func BuildParameters(pw *types.ProviderWebhook) []cftypes.Parameter
func CreateNetwork ¶
func LambdaHandler ¶
func LambdaHandler(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, 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 (*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 (*Deployer) WaitChangeSet ¶
func (*Deployer) WaitExecute ¶
type DeployerInput ¶
type StackResult ¶
type StackResult struct {
ID string
}
Click to show internal directories.
Click to hide internal directories.