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

Does not work with non-default profiles #9

Closed
kevinold opened this issue Jul 19, 2017 · 3 comments
Closed

Does not work with non-default profiles #9

kevinold opened this issue Jul 19, 2017 · 3 comments

Comments

@kevinold
Copy link

kevinold commented Jul 19, 2017

I'm attempting to use with a non-default aws profile like so:

serverless encrypt --aws-profile sandbox -n TEST -v ABCD123 -k XXXXXXX9d-58d5-ZZZZ--AAAA-asdfasdfadf

I receive the following error:

Serverless: NotFoundException: Key 'arn:aws:kms:us-east-1:ZZZZZZZ:key/XXXXXXX-33333-44444-555-UUUUUUUU' does not exist
@mpuittinen
Copy link
Contributor

Thanks @kevinold for reporting this. I've fixed the issue in the module version 0.9.7 but there is still one issue that relates to the Serverless framework. In case you define both AWS_PROFILE env var and --aws-profile cli option, the AWS_PROFILE is used. Intuitively, I'd consider that the cli option should have higher priority.

@mpuittinen
Copy link
Contributor

Submitted PR to serverless : serverless/serverless#3980

@mpuittinen
Copy link
Contributor

@kevinold this should now work with serverless 1.21

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

2 participants