aws

package
v0.0.0-...-8f059d1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 ListPulumiStacks

func ListPulumiStacks(ctx context.Context, s3client *s3.Client, bucketName string) ([]string, 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 (*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) GetProjectUpdate

func (b *ByocAws) GetProjectUpdate(ctx context.Context, projectName string) (*defangv1.ProjectUpdate, error)

func (*ByocAws) GetService

func (b *ByocAws) GetService(ctx context.Context, s *defangv1.GetRequest) (*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 ErrMissingAwsRegion

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

func (ErrMissingAwsRegion) Error

func (e ErrMissingAwsRegion) Error() string

func (ErrMissingAwsRegion) Unwrap

func (e ErrMissingAwsRegion) Unwrap() error

type NewByocInterface

type NewByocInterface func(ctx context.Context, tenantName types.TenantName) *ByocAws
var NewByocProvider NewByocInterface = newByocProvider

type QuotaClientAPI

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

type StsProviderAPI

type StsProviderAPI interface {
	GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
	AssumeRole(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)
}
var StsClient StsProviderAPI

Jump to

Keyboard shortcuts

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