Access workspace bucket data with temporary AWS credentials

When logged into the ADE, temporary s3 credentials can be issued using the maap-py function maap.aws.workspace_bucket_credentials()

This command issues a set of AWS credentials that grant full read/write access to your own user folder within the maap-ops-workspace bucket. Access is given to the directory corresponding to your my-private-bucket folder within the ADE.

import json
from maap.maap import MAAP
maap = MAAP()

print(json.dumps(maap.aws.workspace_bucket_credentials(), indent=2))
>>> {
  "aws_access_key_id": "...",
  "aws_bucket_name": "maap-ops-workspace",
  "aws_bucket_prefix": "maap_user",
  "aws_secret_access_key": "...",
  "aws_session_expiration": "...",
  "aws_session_token": "..."
}