If I am using AWS CLI commands ("aws"), it works to have it pick up the profile I'm using if I set the environment variable AWS_PROFILE so that I don't have to specify credentials or region for each command. This does not work for the AWS Powershell commands. I have to use -ProfileName to get those to work. Can anyone tell how to make this work so that I don't have to specify profile related stuff in each command line?
how to set AWS default profile for AWS Tools for Powershell
564 Views Asked by Roman At
1
There are 1 best solutions below
Related Questions in AWS-POWERSHELL
- AWS LambdaPSCore creating package doesnt work
- Finding the most secure way to change IAM user passwords with AWSPowerShell
- AWS Powershell "Write-S3Object" fails, but "aws s3 cp" succeeds w/ Expires header
- How can i use the AWS commands for Powershell in Jenkins?
- Need to pass AWS secret (environment variable) from powershell to Native Javascript
- Why does AWS Tools for Powershell ignore -ErrorAction SilentlyContinue?
- CodeArtifact: download asset using PowerShell
- I have a json file and using that i need to logon to AWS , set my role, and then retrieve the password from the secret stored within AWS
- Creating id based backup for windows registry files and restore it using powershell
- How install and run latest Apache and PHP Server over EC2 user data PowerShell script for window instance
- Powershell Parameter set cannot be resolved, AWS SSM Automation Document Builder Bug?
- AWS SM Automation aws:executeScript PowerShell import module not loading in script but works on the EC2 instance locally
- How to send SES RawEmail with Attachment through PowerShell
- PowerShell error: Missing '=' operator after key in hash literal. The hash literal was incomplete
- Unable to authenticate when invoking AWS cmdlets with SSO profile in visual studio code
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
AWS Tools for PowerShell does not support
AWS_PROFILE- https://github.com/aws/aws-tools-for-powershell/issues/8You can specify the profile to use for a PowerShell session via Set-AWSCredential:
See Specifying Credentials in the AWS Tools for PowerShell user guide for more.