s3keys generate

Generates access and secret keys for IAM users to access the Object Store.

Syntax

CLI
maprcli s3keys generate	
 [ -cluster cluster_name ]
 -domainname <domain_name>
 -accountname <account_name>
 [ -username <user_name> ]
REST http[s]://<host>:<port>/rest/s3keys/generate?<parameters>

Parameters

Parameter Description
cluster The cluster on which to create the access and secret keys. The default is the current cluster.
domainname The domain to which the user belongs. This parameter is mandatory.
accountname The account to which the domain belongs. This parameter is mandatory.
username The user for which to generate the keys. If not specified, the logged-in user is taken as the user to generate the keys.

Example

TIP To work properly, the maprcli s3kys generate command requires a quorum of the CLDB s3server modules. If you run the command before the quorum is formed, the command can generate an error. To check the quorum status, use the maprcli dump cldbstate --json command. The dump output should indicate that the primary and secondary s3server modules are running.
Generate the access and secret keys for the mapr user in the default account and primary domain.
CLI
maprcli s3keys generate -domainname primary  -accountname default -username mapr -json
{
    "timestamp":1633527639908,
    "timeofday":"2021-10-06 06:40:39.908 GMT-0700 AM",
    "status":"OK",
    "total":1,
    "data":[
        {
            "accesskey":"XJSV9SD99PET929AAJACUSB52ABUMWG05WWCTYLGABPB48HA9NLL3UN1Y2X87OXP3GO3SZU3LVVJOCAI9ZQ1DMCKVL1FNTABDSPGB8P",
            "secretkey":"FFIL3OS5IL482GHPQE0LJD360KJV56Y4ML75ZFMW9STYY24V7X36H3VTQX"
        }
    ]
}