amazon web services - AWS S3 client side encryption using KMS - Region being ignored -


i'm using release kms service amazon , i'm getting issue region being ignored when passed amazons3encryptionclient.

amazons3encryptionclient s3 = new amazons3encryptionclient(credentials, new kmsencryptionmaterialsprovider(keyid)) .withregion(region.getregion(regions.eu_west_1)); 

the error message coming indicates key can't found in region us-east-1 despite actively setting eu-west-1

the error message

 com.amazonaws.services.kms.model.notfoundexception:     key 'arn:aws:kms:us-east-1:account#:key/mykeyname' not exist (service: awskms;     status code: 400; error code: notfoundexception;     request id: 8fb90ad0-7644-11e4-bf12-0b5a59268629) 

i can't find documentation suggest specific bug in api, suggestions?

try reading comments/suggestions @ bottom of thread:

http://java.awsblog.com/post/tx19olb7m3d6ds8/s3-encryption-with-aws-key-management-service

looks there release address issue addition of new parameter.

i.e:

amazons3 s3 = new amazons3encryptionclient(new defaultawscredentialsproviderchain(),                 new kmsencryptionmaterialsprovider(customermasterkeyid),                 new cryptoconfiguration().withkmsregion(regions.fromname("us-west-2"))); 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -