Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid user ID: when cleaning up snapshots #9

Open
PommyOne opened this issue Jun 22, 2015 · 7 comments
Open

Invalid user ID: when cleaning up snapshots #9

PommyOne opened this issue Jun 22, 2015 · 7 comments

Comments

@PommyOne
Copy link

Hi I'm getting an error duing the snapshot cleanup. GetAllSnapshots : Amazon.EC2.AmazonEC2Exception: Invalid user id: "XXX_XXX" ---> Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()

then the rest of the script fails.
The snapshotting works just fine its only during the cleanup.

Is anyone experencing this?

I've tried different IAMS accounts, but all permissions are set fine.. really odd. Could someone please help?

@PiERiT
Copy link

PiERiT commented Sep 22, 2015

I get the same error. Were you ever able to get this resolved?

@dms2015
Copy link

dms2015 commented Sep 22, 2015

I was able to fix this because I had used the smtp keys instead of creating a root key. Go to IAM and under security status on first screen, there is a list of to dos and one is to create a root key. After doing this, I added that key and secret access key from there to the scripts and then it worked.

@PiERiT
Copy link

PiERiT commented Sep 22, 2015

No luck there. I was already using the root key.

@dms2015
Copy link

dms2015 commented Sep 22, 2015

ahhh... Yours is the cleanup... I was having other issues. Noah and Adam are great at helping with this. I would see if they could help.

@noahlh
Copy link
Owner

noahlh commented Sep 22, 2015

I wish I could offer assistance on this front but I haven't encountered this error on my setup :(

@PiERiT
Copy link

PiERiT commented Sep 22, 2015

Well, here's what I did. I'd appreciate it if you could confirm this was right or if I missed something.

I went to Security Credentials under the name menu, expanded Access Keys, and created a new key. I then pasted the access key, the security key, and the account ID into the script. The backup succeeds, but the retention portion does not.

Do I need to alter permissions on that API key somehow? Am I better off creating an actual user and using those credentials?

@PiERiT
Copy link

PiERiT commented Sep 24, 2015

Figured it out... I misread your instructions and didn't see to remove the dashes in the User ID in AWSConfig.ps1. D'oh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants