aws

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerName               = "waypoint-server"
	DefaultStaticRunnerName  = "waypoint-static-runner"
	DefaultSecurityGroupName = "waypoint-server-security-group"
	RolePolicy               = `` /* 213-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func CreateService

func CreateService(serviceInput *ecs.CreateServiceInput, ecsSvc *ecs.ECS) (*ecs.Service, error)

func DeleteCWLResources

func DeleteCWLResources(
	ctx context.Context,
	sess *session.Session,
	logGroup string,
) error

func DeleteEcsCommonResources

func DeleteEcsCommonResources(
	ctx context.Context,
	sess *session.Session,
	clusterArn string,
	resources []*resourcegroups.ResourceIdentifier,
) error

DeleteEcsCommonResources deletes the provided ECS service and task definition

func DeleteEcsResources

func DeleteEcsResources(
	ctx context.Context,
	sess *session.Session,
	resources []*resourcegroups.ResourceIdentifier,
) error

func FindServices added in v0.10.0

func FindServices(serviceNames []string, ecsSvc *ecs.ECS, cluster string) ([]*ecs.Service, error)

func SetupExecutionRole

func SetupExecutionRole(
	ctx context.Context,
	ui terminal.UI,
	log hclog.Logger,
	sess *session.Session,

	executionRoleName string,
) (string, error)

TODO: Add runner ID as tag SetupExecutionRole creates the necessary IAM execution role for Waypoint, if it does not exist

func SetupLogs

func SetupLogs(
	ctx context.Context,
	ui terminal.UI,
	log hclog.Logger,
	sess *session.Session,

	logGroup string,
) (string, error)

Types

type EfsInformation

type EfsInformation struct {
	FileSystemID  *string
	AccessPointID *string
}

func SetupEFS

func SetupEFS(
	ctx context.Context,
	ui terminal.UI,
	sess *session.Session,
	netInfo *NetworkInformation,
	efsTags []*efs.Tag,
) (*EfsInformation, error)

type Lifecycle

type Lifecycle struct {
	Init    func(terminal.UI) error
	Run     func(terminal.UI) error
	Cleanup func(terminal.UI) error
}

func (*Lifecycle) Execute

func (lf *Lifecycle) Execute(log hclog.Logger, ui terminal.UI) error

type NetworkInformation

type NetworkInformation struct {
	VpcID   *string
	SgID    *string
	Subnets []*string
}

func SetupNetworking

func SetupNetworking(
	ctx context.Context,
	ui terminal.UI,
	sess *session.Session,
	subnet []string,
	ports []*int64,
) (*NetworkInformation, error)

SetupNetworking retrieves subnet information and creates the security group necessary for Waypoint.

Jump to

Keyboard shortcuts

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