< Back
Set-AWSCurrentProfile
Post
NAME Set-AWSCurrentProfile
SYNOPSIS
Sets the AWS CLI profile to the provided value, or clears it if $null is passed.
SYNTAX
Set-AWSCurrentProfile [-ProfileName] <String> [-Persist] [-Quiet] [<CommonParameters>]
Set-AWSCurrentProfile -Clear [-Persist] [-Quiet] [<CommonParameters>]
DESCRIPTION
This manipulates the value of the AWS_PROFILE environment variable. If the provided
value does not exist as a configured AWS CLI profile, a warning will be displayed.
PARAMETERS
-ProfileName <String>
Set the profile to this value.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Clear [<SwitchParameter>]
Clear the selected profile.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Persist [<SwitchParameter>]
Save the updated profile into the user's environment variables so that it persists
across PowerShell restarts.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-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
SYNOPSIS
Sets the AWS CLI profile to the provided value, or clears it if $null is passed.
SYNTAX
Set-AWSCurrentProfile [-ProfileName] <String> [-Persist] [-Quiet] [<CommonParameters>]
Set-AWSCurrentProfile -Clear [-Persist] [-Quiet] [<CommonParameters>]
DESCRIPTION
This manipulates the value of the AWS_PROFILE environment variable. If the provided
value does not exist as a configured AWS CLI profile, a warning will be displayed.
PARAMETERS
-ProfileName <String>
Set the profile to this value.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Clear [<SwitchParameter>]
Clear the selected profile.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Persist [<SwitchParameter>]
Save the updated profile into the user's environment variables so that it persists
across PowerShell restarts.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-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