Giter Site home page Giter Site logo

aws-powershell-user-guide's Introduction

aws-powershell-user-guide's People

Contributors

bisdavid avatar ebattalio avatar elysahall avatar eronhennessey avatar gitgaby avatar hyandell avatar joshbean avatar jschwarzwalder avatar jwdinkel avatar limpingninja avatar matteo-prosperi avatar mobattah avatar muhammad-othman avatar paul-b-aws avatar powersix avatar sblauman avatar scrthq avatar sstevenkang avatar stevejroberts avatar tyron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-powershell-user-guide's Issues

Clarification of -WhatIf tag needed

page where error shows up: https://docs.aws.amazon.com/powershell/latest/userguide/pstools-discovery-aliases.html

The phrase: "AWS cmdlets do not support the -WhatIf switch." should be clarified:
-New-EC2Tag Respects the -whatif when running cmdlet, or when called in a procedure with [CmdletBinding(SupportsShouldProcess=$true)]
Remove-EC2Tag Respects -whatif fromcmdlet but not when called from a procedure with [CmdletBinding(SupportsShouldProcess=$true)]
"myrenamescript" does a new-ec2tag , remove-ec2tag -tag -force

So I called myrenamescript.ps1 -newtag $tag -whatif
New tag poped up with the proper whatif message and not created
Old tag was deleted.
ran script again myrenamescript.ps1 -newtag $tag
New tag was created, old tag was deleted
from Powershell pompt (not in script)
remove-ec2tag -tag -whatif
tag was NOT removed. got proper warning message

Something is wrong with Initialize-AWSDefaultConfiguration

Hi,

I've tried a few times now on different computers over a longer period, to setup AWS in powershell using the Initialize cmdlet. But it never really sticks - as in, it works for the current session (Get-EC2Instance returns data) but doesn't persist onto new powershell instances. I finally make it work each time by looking up the documentation and finding that I can put in an AWSCredential named "default", which then sticks.

When troubleshooting this, I go to the location AWS Powershell stores persisted credentials, which according to this page should be at C:\Users\<user>\.aws\ - but that directory doesn't exist after an Initialize-AWSDefaultConfiguration. Even if I create it, it doesn't get any content on reruns of the cmdlet.

Using procmon from Sysinternals, I've discovered a backing store file for Get-AWSCredential (and Set-) at this location: %LocalAppdata%\AWSToolkit. Shouldn't the docs specify this directory instead?

This directory contains a JSON file with all the details needed - making me believe the .aws directory is outdated?

This works for me (order does not seem to matter):

Set-AWSCredential -StoreAs default -AccessKey <..some access key..>
Initialize-AWSDefaultConfiguration -Region <..my region..>

After this, the JSON file in %LocalAppdata%\AWSToolkit contains both my region and credentials. Subsequent sessions will run Get-EC2Instance without error.

This does not work for me:

Initialize-AWSDefaultConfiguration -Region <..my region..>

It creates the JSON file in %LocalAppdata%\AWSToolkit, but it only contains my region - it does not contain the credentials I supplied to Initialize-AWSDefaultConfiguration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.