Generating S3 account access key pairs via CLI

You can generate a new access key pair for the specified account of an S3 user with the ostor-s3-admin gen-access-key command. The maximum of 2 active access key pairs are allowed per account. You need to specify either the user email (-e) or S3 ID (-i) and the account name. For example:

# ostor-s3-admin gen-access-key -V 0100000000000002 -n account -e user@email.com
S3AccessKeyId:b09693b73b3c7686WCF3
S3SecretAccessKey:GMzOPHJ66qbnxjrqFMHrN2fnxjkGf67u9OXec3PQ

It is recommended to periodically revoke old and generate new access key pairs.