infra

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package infra provides AWS client initialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(ctx context.Context) (aws.Config, error)

LoadConfig loads the default AWS configuration.

func NewParamClient

func NewParamClient(ctx context.Context) (*ssm.Client, error)

NewParamClient creates a new SSM Parameter Store client using the default configuration.

func NewSecretClient

func NewSecretClient(ctx context.Context) (*secretsmanager.Client, error)

NewSecretClient creates a new Secrets Manager client using the default configuration.

Types

type AWSIdentity added in v0.4.8

type AWSIdentity struct {
	AccountID string
	Region    string
	Profile   string
}

AWSIdentity contains AWS account ID, region, and profile name.

func GetAWSIdentity added in v0.4.8

func GetAWSIdentity(ctx context.Context) (*AWSIdentity, error)

GetAWSIdentity retrieves the current AWS account ID, region, and profile name.

Jump to

Keyboard shortcuts

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