aws

package
v0.0.0-...-66c9f5b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 53 Imported by: 1

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://s.defang.io/deploy-gpu")
View Source
var ErrNoQuotasReceived = errors.New("no service quotas received")

Functions

func AnnotateAwsError

func AnnotateAwsError(err error) error

func ListPulumiStacks

func ListPulumiStacks(ctx context.Context, s3client S3Client, bucketName string) (iter.Seq[state.PulumiState], error)

func NewServiceQuotasClient

func NewServiceQuotasClient(cfg aws.Config) *servicequotas.Client

Types

type ByocAws

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

func NewByocProvider

func NewByocProvider(ctx context.Context, tenantName types.TenantLabel, stack string) *ByocAws

func (*ByocAws) AccountInfo

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

func (*ByocAws) AddCodebuildEventHandler

func (b *ByocAws) AddCodebuildEventHandler(handler CodebuildEventHandler)

func (*ByocAws) AddEcsEventHandler

func (b *ByocAws) AddEcsEventHandler(handler ECSEventHandler)

func (*ByocAws) CdCommand

func (b *ByocAws) CdCommand(ctx context.Context, req client.CdCommandRequest) (string, error)

func (*ByocAws) CdList

func (b *ByocAws) CdList(ctx context.Context, allRegions bool) (iter.Seq[state.Info], error)

func (*ByocAws) CreateUploadURL

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

func (*ByocAws) DeleteConfig

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

func (*ByocAws) Deploy

func (*ByocAws) FixupServices

func (b *ByocAws) FixupServices(ctx context.Context, project *composeTypes.Project) error

func (*ByocAws) GetDeploymentStatus

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

func (*ByocAws) GetPrivateDomain

func (b *ByocAws) GetPrivateDomain(projectName string) string

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) HandleCodebuildEvent

func (b *ByocAws) HandleCodebuildEvent(evt codebuild.Event)

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) PrintCloudFormationTemplate

func (b *ByocAws) PrintCloudFormationTemplate() ([]byte, error)

func (*ByocAws) PutConfig

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

func (*ByocAws) QueryLogs

func (*ByocAws) SetUpCD

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

func (*ByocAws) TearDownCD

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

func (*ByocAws) UpdateServiceInfo

func (b *ByocAws) UpdateServiceInfo(ctx context.Context, si *defangv1.ServiceInfo, projectName, delegateDomain string, service composeTypes.ServiceConfig) error

type CodebuildEventHandler

type CodebuildEventHandler interface {
	HandleCodebuildEvent(evt codebuild.Event)
}

type Config

type Config = awssdk.Config

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 QuotaClientAPI

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

type S3Client

type S3Client interface {
	GetBucketLocation(ctx context.Context, params *s3.GetBucketLocationInput, optFns ...func(*s3.Options)) (*s3.GetBucketLocationOutput, error)
	GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
	ListBuckets(ctx context.Context, params *s3.ListBucketsInput, optFns ...func(*s3.Options)) (*s3.ListBucketsOutput, error)
	ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)
}

Jump to

Keyboard shortcuts

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