Could someone can help me to solve this problem about ceph-STS(secure token session)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

Hello everyone:

       When I use the method : assume_role, like this:

        sts_client = boto3.client('sts',
               
aws_access_key_id=access_key,
               
aws_secret_access_key=secret_key,
               
endpoint_url=host,
               
)
response = sts_client.assume_role(
RoleArn='arn:aws:iam:::role/AccessRole1', RoleSessionName="ymh_bucketAccess")

 

I create a role in terminal:

 

cid:image001.png@01D50F28.B58728A0

I return that :

 

Traceback (most recent call last):

  File "/Users/yuanminghui/PycharmProjects/myproject1/10-sts-demo.py", line 64, in test1

    response = sts_client.assume_role(RoleArn='arn:aws:iam:::role/AccessRole1', RoleSessionName="ymh_bucketAccess")

  File "/Users/yuanminghui/PycharmProjects/myproject1/venv/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call

    return self._make_api_call(operation_name, kwargs)

  File "/Users/yuanminghui/PycharmProjects/myproject1/venv/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call

    raise error_class(parsed_response, operation_name)

botocore.exceptions.ClientError: An error occurred (Unknown) when calling the AssumeRole operation: Unknown

 

 

I really do not know whats wrong with this? Is there someone can help? Thanks a lot.

best wishes

 

 

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux