realestate-com-au / shush

It's a secret.
169 stars 36 forks source link

Updated for aws api changes. #1

Closed nadnerb closed 8 years ago

nadnerb commented 8 years ago

Hey mate, this compiles, however I am getting a ERROR: NotFoundException: Invalid keyId exception when trying to encrypt. Everything looks ok, never used KMS before though.

mdub commented 8 years ago

Dumb question: does the key you're specifying exist?

Keys are region-specific, so you might need to use --region to target the right one.

If that doesn't work, please provide more detail: how are you invoking it?

nadnerb commented 8 years ago

Yep, it exists, I am on a box that has the role that can use it as well. I will look at the cli tomorrow to see where I am going wrong.

On Thu, Feb 18, 2016 at 9:37 PM, Mike Williams notifications@github.com wrote:

Dumb question: does the key you're specifying exist?

Keys are region-specific, so you might need to use --region to target the right one.

If that doesn't work, please provide more detail: how are you invoking it?

— Reply to this email directly or view it on GitHub https://github.com/realestate-com-au/shush/pull/1#issuecomment-185646239 .

nadnerb commented 8 years ago

Ok, I thought I would have a quick look before I went to bed and now feel a bit silly, I was using the alias name, not the id. It all works now.. however you still won't be able to compile against later version of the aws-sdk-go unless you update to use github.com/aws/aws-sdk-go/aws/session.

mdub commented 8 years ago

Righto. I'm pretty sure aliases work, if you prefix them with "alias/".

mdub commented 8 years ago

Oh wait, this is a PR - sorry.