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 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). By default the bodyless LogRequest/LogResponse modes are used (metadata only, no secret values); --no-redaction switches to the WithBody modes so full request/response payloads are logged too.
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.