< Back

Invoke-WithAWSVaultExec

Sat Jan 18, 2020 7:35 pm

NAME Invoke-WithAWSVaultExec



SYNOPSIS

Provides a convenient wrapper for aws-vault exec.





SYNTAX

Invoke-WithAWSVaultExec [-CommandName] <Object> [[-CommandArguments] <Object>] [<CommonParameters>]





DESCRIPTION

Calling this with a command is basically equivalent to calling

aws-vault exec $Env:AWS_PROFILE command.



But, see https://github.com/99designs/aws-vault/issues/410 for caveats.





PARAMETERS

-CommandName <Object>

The command to execute.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CommandArguments <Object>

The arguments to pass to the command specified by CommandName.



Required? false

Position? 2

Default value

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-awsvault