aws

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegionParamName  = "AWS_REGION"
	ProfileParamName = "AWS_PROFILE"

	ConfigFileMountPath = "/ocular/aws/config"
)

Variables

View Source
var FileSecrets = []definitions.FileSecret{
	{
		SecretKey: "aws-config",
		MountPath: ConfigFileMountPath,
	},
}
View Source
var Parameters = []v1beta1.ParameterDefinition{
	{
		Name:        RegionParamName,
		Description: "AWS region of the ECR repository. Defaults to the region configured in the AWS SDK.",
		Required:    false,
	},
	{
		Name:        ProfileParamName,
		Description: "ARN of the role to assume for accessing the ECR repository. Optional.",
		Required:    false,
	},
}

Functions

func BuildConfig

func BuildConfig(ctx context.Context, opts ...func(*config.LoadOptions) error) (aws.Config, error)

func WithProfile

func WithProfile(profile string) func(*config.LoadOptions) error

func WithRegionOverride

func WithRegionOverride(regionOverride string) func(*config.LoadOptions) error

Types

type Options

type Options struct {
	Region     string
	AssumeRole string
}

Jump to

Keyboard shortcuts

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