Reputation: 1060
During executing eb init
on Ubuntu 16.04 I faced an error Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term,
.
I understand that my keyid
has slashes but they must be there, key was provided by AWS and it is generated. I have no idea how to skip this validation. As I know on MAC this problem is not present.
How can I deal with this error? thanks
Upvotes: 31
Views: 28780
Reputation: 424
In my case simply refreshing all the sessions meaning, closing any terminals open and restarting the ide.
Upvotes: 0
Reputation: 163
In my case, env keys were lowercase. Making them uppercase solved my issue
aws_access_key_id
-> AWS_ACCESS_KEY_ID
aws_secret_access_key
-> AWS_SECRET_ACCESS_KEY
Upvotes: 1
Reputation: 59966
In my case, I was using access_key
as secret_key
and secrect_key
as access_key
.
So better to double-check the secret.
Also access key should not contain any special character. Plus one easy to identify the access key is to looking into prefix of the key.
The access key begins with the prefix
ASIA
, otherwise it beings withAKIA
. All random looking ID’s on AWS have their own 4 letter prefixes that identify what they are.
aws_security_credential_formats
Upvotes: 25
Reputation: 99
i have environmental variables for access id and secret key, i had them interchanged, that was the issue, once i set those correctly it works
Upvotes: 3
Reputation: 179124
An AWS Access Key ID does not have any slashes. It is comprised of uppercase ASCII letters only, and begins with AKIA...
or ASIA...
.
One possible explanation is that you have transposed your access key ID with the accompanying secret access key, which does often have slashes.
Access keys consist of an access key ID (for example,
AKIAIOSFODNN7EXAMPLE
) and a secret access key (for example,wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
).
If you have indeed transposed these values in your configuration, you should deactivate these credentials and create new ones before proceeding, because you may have inadvertently exposed your secret key.
Upvotes: 34