AWS endpoint - Authenticate

0

Hi Need help in creating a authentication header when using AWS endpoints directly instead of AWS boto3 SDK. Using the same access ID and KEY, boto3 code is working, we have to use AWS endpoint directly for some specific reason. This is just a example, ignore content-type and accept. data=data is data what we are passing, that is formatted correctly. Any help will be appreciated. Error message - {'message': 'Missing Authentication Token'}

headers = {
        "aws_access_key_id" : "---------------------------",           
        "aws_secret_access_key" : "----------------------"
        "Content-Type" : "application/x-www-form-urlencoded",
        "Accept" : "application/json"
    }
response = requests.post("https://appflow.us-east-2.amazonaws.com/update-flow", data=data, headers=headers, verify=True)
print(response.json())
gefragt vor einem Jahr213 Aufrufe
1 Antwort
0

Please have a look at this: Create a signed AWS API request. There are code examples at the bottom.

profile pictureAWS
EXPERTE
kentrad
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen