My issue is AWS boto3 package, authorization, python.
Referencing to https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html section: "Configuring credentials" the aws credentials for boto3 instance can be sought from from
"4. Shared credential file (~/.aws/credentials
)"
To proof the ~/.aws/credentials
are valid and sufficient I am using aws cli (secretsmanager: create-secret, get-secret-value
calls). The response/results are OK.
Not so the boto3 instance in python code (using client.get_secret_value
).
Expected: error free response
Actualy:
botocore.exceptions.ClientError: An error occurred
(UnrecognizedClientException) when calling the GetSecretValue
operation: The security token included in the request is invalid.
Any hint appreciated, thnx.