aws

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context,
	cfg aws.Config,
	providerAws *AwsProvider,
) (*ec2.RunInstancesOutput, error)

func CreateDevpodInstanceProfile added in v0.0.3

func CreateDevpodInstanceProfile(ctx context.Context, provider *AwsProvider) (string, error)

func CreateDevpodSecurityGroup

func CreateDevpodSecurityGroup(ctx context.Context, provider *AwsProvider) (string, error)

func Delete

func Delete(ctx context.Context, cfg aws.Config, instanceID string) error

func GetAMIRootDevice added in v0.0.9

func GetAMIRootDevice(ctx context.Context, cfg aws.Config, diskImage string) (string, error)

func GetDefaultAMI

func GetDefaultAMI(ctx context.Context, cfg aws.Config, instanceType string) (string, error)

func GetDevpodInstance

func GetDevpodInstance(
	ctx context.Context,
	cfg aws.Config,
	name string,
) (*ec2.DescribeInstancesOutput, error)

func GetDevpodInstanceProfile added in v0.0.3

func GetDevpodInstanceProfile(ctx context.Context, provider *AwsProvider) (string, error)

func GetDevpodRunningInstance

func GetDevpodRunningInstance(
	ctx context.Context,
	cfg aws.Config,
	name string,
) (*ec2.DescribeInstancesOutput, error)

func GetDevpodSecurityGroups added in v0.0.8

func GetDevpodSecurityGroups(ctx context.Context, provider *AwsProvider) ([]string, error)

func GetDevpodStoppedInstance

func GetDevpodStoppedInstance(
	ctx context.Context,
	cfg aws.Config,
	name string,
) (*ec2.DescribeInstancesOutput, error)

func GetDevpodVPC added in v0.0.3

func GetDevpodVPC(ctx context.Context, provider *AwsProvider) (string, error)

func GetInjectKeypairScript

func GetInjectKeypairScript(dir string) (string, error)

func GetInstanceTags added in v0.0.5

func GetInstanceTags(providerAws *AwsProvider) []types.TagSpecification

func GetSubnetID added in v0.0.6

func GetSubnetID(ctx context.Context, provider *AwsProvider) (string, error)

func Start

func Start(ctx context.Context, cfg aws.Config, instanceID string) error

func Status

func Status(ctx context.Context, cfg aws.Config, name string) (client.Status, error)

func Stop

func Stop(ctx context.Context, cfg aws.Config, instanceID string) error

Types

type AwsProvider

type AwsProvider struct {
	Config           *options.Options
	AwsConfig        aws.Config
	Log              log.Logger
	WorkingDirectory string
}

func NewProvider

func NewProvider(ctx context.Context, logs log.Logger) (*AwsProvider, error)

Jump to

Keyboard shortcuts

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