aws

package
v0.0.0-...-5999d53 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CdImageRepo = "public.ecr.aws/defang-io/cd"
)

Variables

View Source
var ErrAWSNoConnection = errors.New("no connect to AWS service quotas")
View Source
var ErrGPUQuotaZero = errors.New("no GPUs enabled. To resolve see https://docs.defang.io/docs/tutorials/deploy-with-gpu")
View Source
var ErrNoQuotasReceived = errors.New("no service quotas received")
View Source
var (
	PulumiVersion = pkg.Getenv("DEFANG_PULUMI_VERSION", "3.136.1")
)

Functions

func AnnotateAwsError

func AnnotateAwsError(err error) error

func NewServiceQuotasClient

func NewServiceQuotasClient(ctx context.Context, cfg aws.Config) *servicequotas.Client

func ValidateGPUResources

func ValidateGPUResources(ctx context.Context, project *composeTypes.Project) error

Types

type AWSAccountInfo

type AWSAccountInfo struct {
	// contains filtered or unexported fields
}

func (AWSAccountInfo) AccountID

func (i AWSAccountInfo) AccountID() string

func (AWSAccountInfo) Details

func (i AWSAccountInfo) Details() string

func (AWSAccountInfo) Provider

func (i AWSAccountInfo) Provider() client.ProviderID

func (AWSAccountInfo) Region

func (i AWSAccountInfo) Region() string

type ByocAws

type ByocAws struct {
	*byoc.ByocBaseClient
	// contains filtered or unexported fields
}

func NewByocProvider

func NewByocProvider(ctx context.Context, tenantId types.TenantID) *ByocAws

func (*ByocAws) AccountInfo

func (b *ByocAws) AccountInfo(ctx context.Context) (client.AccountInfo, error)

func (*ByocAws) AddEcsEventHandler

func (b *ByocAws) AddEcsEventHandler(handler ECSEventHandler)

func (*ByocAws) BootstrapCommand

func (b *ByocAws) BootstrapCommand(ctx context.Context, req client.BootstrapCommandRequest) (string, error)

func (*ByocAws) BootstrapList

func (b *ByocAws) BootstrapList(ctx context.Context) ([]string, error)

func (*ByocAws) CreateUploadURL

func (b *ByocAws) CreateUploadURL(ctx context.Context, req *defangv1.UploadURLRequest) (*defangv1.UploadURLResponse, error)

func (*ByocAws) Delete

func (*ByocAws) DeleteConfig

func (b *ByocAws) DeleteConfig(ctx context.Context, secrets *defangv1.Secrets) error

func (*ByocAws) Deploy

func (*ByocAws) Destroy

func (b *ByocAws) Destroy(ctx context.Context, req *defangv1.DestroyRequest) (string, error)

func (*ByocAws) Follow

func (*ByocAws) GetService

func (b *ByocAws) GetService(ctx context.Context, s *defangv1.ServiceID) (*defangv1.ServiceInfo, error)

func (*ByocAws) GetServices

func (*ByocAws) HandleECSEvent

func (b *ByocAws) HandleECSEvent(evt ecs.Event)

func (*ByocAws) ListConfig

func (b *ByocAws) ListConfig(ctx context.Context, req *defangv1.ListConfigsRequest) (*defangv1.Secrets, error)

func (*ByocAws) Preview

func (*ByocAws) PutConfig

func (b *ByocAws) PutConfig(ctx context.Context, secret *defangv1.PutConfigRequest) error

func (*ByocAws) Query

func (b *ByocAws) Query(ctx context.Context, req *defangv1.DebugRequest) error

func (*ByocAws) TearDown

func (b *ByocAws) TearDown(ctx context.Context) error

type ECSEventHandler

type ECSEventHandler interface {
	HandleECSEvent(evt ecs.Event)
}

type ErrMissingAwsCreds

type ErrMissingAwsCreds struct {
	// contains filtered or unexported fields
}

func (ErrMissingAwsCreds) Error

func (e ErrMissingAwsCreds) Error() string

func (ErrMissingAwsCreds) Unwrap

func (e ErrMissingAwsCreds) Unwrap() error

type QuotaClientAPI

type QuotaClientAPI interface {
	ListServiceQuotas(ctx context.Context, params *servicequotas.ListServiceQuotasInput, optFns ...func(*servicequotas.Options)) (*servicequotas.ListServiceQuotasOutput, error)
}

Jump to

Keyboard shortcuts

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