Documentation
¶
Overview ¶
Package awsauth resolves AWS credentials for the rdq CLI.
It wraps the SDK's default credential chain and adds an interactive profile picker for the "rdq --profile" (bare flag) UX.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListProfiles ¶
ListProfiles returns the profile names found in the shared AWS config and credentials files. "default" is always included as the first entry when it exists in either file. A missing file is not an error — it contributes no profiles.
func LoadConfig ¶
LoadConfig resolves AWS credentials. When profile is empty the SDK's default chain applies (environment variables → shared config default profile → EC2/ECS metadata). When profile is non-empty it is used as the shared config profile override.
func SelectProfile ¶
SelectProfile launches an interactive fuzzy finder over the given profile names. It fails early when stdin is not a terminal, since the finder would otherwise corrupt piped input.
Types ¶
This section is empty.