< Back

Get-AWSCurrentProfile

Sat Jan 18, 2020 7:34 pm

NAME Get-AWSCurrentProfile



SYNOPSIS

Returns the currently set AWS CLI profile, or "default" if none has been specified.





SYNTAX

Get-AWSCurrentProfile [-Quiet] [<CommonParameters>]





DESCRIPTION

This returns the value of the AWS_PROFILE environment variable. If the variable is

not set, it will return "default".



If the variable is set to a value that does not exist as a configured AWS CLI profile,

a warning will be displayed.





PARAMETERS

-Quiet [<SwitchParameter>]

Suppress informational output.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS

https://www.github.com/jonscheiding/posh-awsprofile