Amazon AWS Cognito and Python Boto3 to establish AWS connection and upload file to Bucket

前端 未结 3 1000
[愿得一人]
[愿得一人] 2021-02-06 08:57

I\'m trying to use the AWS cognito service to authenticate and upload a file. I have been provided my regionType, identityPool, AWS account ID, and UnAuthRole. I also know the p

3条回答
  •  Happy的楠姐
    2021-02-06 09:26

    PhilBot, I don't know why your original code sample connects to s3 using boto (as opposed to boto3). The code connects to cognito using boto3. As of now, boto3 is stable and there's probably not much reason to use boto anymore. (Maybe when you originally posted your question, boto3 was not as stable as it is today.)

    When I tried using your code to connect to kinesis with boto3, it didn't work -- I had to pass response["Credentials"]["SessionToken"] as the aws_session_token to the client() function.

提交回复
热议问题