Difference between revisions of "AuthorizationHeaderMalformed"
Jump to navigation
Jump to search
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | An error occurred (AuthorizationHeaderMalformed) when calling the [[ListBuckets]] operation: The authorization header is malformed; a non-empty Access Key ([[AKID]]) must be provided in the credential. | + | [[An error occurred]] (AuthorizationHeaderMalformed) when calling the [[ListBuckets]] operation: The [[authorization header is malformed]]; a non-empty [[Access Key]] ([[AKID]]) must be provided in the credential. |
+ | |||
+ | Solution: verify [[aws_access_key_id]] in your <code>[[~/.aws/credentials]]</code> file is setup | ||
+ | |||
+ | |||
+ | [[level=error]] msg=Create S3 bucket with retry YOUR-BUCKET-NAME returned an error: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'xx-xxxxx-1' is wrong; expecting 'yy-yyyy-1' | ||
+ | |||
+ | When you are creating a bucket with a name that this already being used as a bucket name in your AWS account or in any other AWS account (Please note that S3 bucket names are globally unique). | ||
== Related == | == Related == | ||
Line 6: | Line 13: | ||
== See also == | == See also == | ||
+ | * {{AccessDenied}} | ||
* {{aws cli config}} | * {{aws cli config}} | ||
* {{aws configure}} | * {{aws configure}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 10:21, 3 September 2023
An error occurred (AuthorizationHeaderMalformed) when calling the ListBuckets operation: The authorization header is malformed; a non-empty Access Key (AKID) must be provided in the credential.
Solution: verify aws_access_key_id in your ~/.aws/credentials
file is setup
level=error msg=Create S3 bucket with retry YOUR-BUCKET-NAME returned an error: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'xx-xxxxx-1' is wrong; expecting 'yy-yyyy-1'
When you are creating a bucket with a name that this already being used as a bucket name in your AWS account or in any other AWS account (Please note that S3 bucket names are globally unique).
Related[edit]
See also[edit]
AccessDenied, AuthorizationHeaderMalformed
- AWS CLI: environmental variables,
aws configure, ~/.aws/config
,~/.aws/credentials
,~/.aws/cli/alias, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
aws configure [ list-profiles | sso | sso-session | set ]
,~/.aws/config
,.aws/credentials
,mfa_serial
, AWS cli environmental variables:AWS_PROFILE
,AWS_REGION, AWS_DEFAULT_REGION, AWS_SESSION_TOKEN, AWS_ROLE_SESSION_NAME
,.aws/
, AWS functions,--profile, viawsconfig, viawscredentials
Advertising: