Skip to content
Discussion options

You must be logged in to vote

Build the latest version, and then try using code similar to the following. The user and AK SK are built on the front end. Note that temporary accounts currently inherit user permissions and cannot yet specify policies using ARN; this will be implemented soon.
Since I don't have a Java environment, please try other languages ​​yourself. The temporary account application interface is compatible with S3; feedback is welcome.

#!/usr/bin/env python3
"""
Script to use STS to assume a role and list objects in a bucket
Compatible with the RustFS project's STS implementation
"""

import boto3
import requests
import json
from botocore.exceptions import ClientError
import xml.etree.ElementTree as ET

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pythonohtyp
Comment options

@nanjishidu
Comment options

@GatewayJ
Comment options

@nanjishidu
Comment options

Answer selected by pythonohtyp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants