Documentation
¶
Overview ¶
Package infra provides AWS client initialization.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig loads the default AWS configuration. When debug is enabled on the context it turns on SDK request/response/retry logging (metadata only — the bodyless LogRequest/LogResponse modes never print secret values) plus config resolution warnings, and logs a one-line summary of the effective region, profile, and credentials source — the facts a user needs first when a command unexpectedly returns nothing (see #306).
func NewParamClient ¶
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
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.