|
@@ -355,6 +355,8 @@ class CloudStorageView(View):
|
|
|
aws_secret_access_key='ckYLg4Lo9ZXJIcJEAKkzf2rWvs8Xth1FCjqiAqUw',
|
|
|
region_name=REGION_NAME
|
|
|
)
|
|
|
+ print('----------test')
|
|
|
+ print(REGION_NAME)
|
|
|
Policy = {
|
|
|
"Version": "2012-10-17",
|
|
|
"Statement": [
|
|
@@ -366,6 +368,7 @@ class CloudStorageView(View):
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
+ print(Policy)
|
|
|
response = boto3_sts.get_federation_token(
|
|
|
Name='{role_name}'.format(role_name=uid + '_' + channel),
|
|
|
Policy=json.dumps(Policy),
|