pw buckets get-token
pw buckets get-token
Print temporary access credentials for a cloud bucket
Synopsis
The pw buckets get-token command must be followed by a bucket URI.
Both PW URIs and CSP URIs are accepted. For more information about URIs, please see this section.
It prints shell export lines with short-term credentials for the bucket's cloud provider — AWS access key/secret/session token, a Google Cloud SDK access token, or azcopy service-principal variables — ready to eval and use with that provider's own CLI. These are the same short-term tokens described here.
pw buckets get-token [bucketURI] [flags]Examples
pw buckets get-token pw://demo/demos3bucket
# Load them into the current shell and use the AWS CLI directly
eval "$(pw buckets get-token pw://demo/demos3bucket)"
aws s3 ls $BUCKET_URIOptions
-h, --help help for get-tokenOptions inherited from parent commands
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
-v, --verbose Enable verbose loggingSEE ALSO
- pw buckets - Manage cloud buckets