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

Rename AWS_ROLE ENV variable #8

Closed
hanchang opened this issue Feb 16, 2015 · 4 comments
Closed

Rename AWS_ROLE ENV variable #8

hanchang opened this issue Feb 16, 2015 · 4 comments

Comments

@hanchang
Copy link

The AWS_ROLE variable in the .env file is somewhat misleading, since it actually represents the Role ARN. As a result, it may be a good idea to rename it to AWS_ROLE_ARN for clarity so others in the future don't get an error message:

{ [ValidationException: 1 validation error detected: Value 'worker' at 'role' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+]
  message: '1 validation error detected: Value \'worker\' at \'role\' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+',
  code: 'ValidationException',
  time: Sun Feb 15 2015 21:18:18 GMT-0500 (EST),
  statusCode: 400,
  retryable: false,
  retryDelay: 30 }

That said, the error message was excellent, very descriptive!

@motdotla
Copy link
Owner

If we get some 👍 s on this, then we'll consider that.

@jamesyoung
Copy link

👍

1 similar comment
@elbuo8
Copy link
Contributor

elbuo8 commented Feb 18, 2015

👍

@motdotla
Copy link
Owner

This is updated in 0.3.15 and up on npm. Allows for either AWS_ROLE_ARN or AWS_ROLE.

FYI: that error comes directly from Amazon and passed back to the library - so that error message will always say 'role' until/if they update their error message.

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