To specify the access key and secret key for an HCP user account, create a file named .s3curl in your home directory. In this file, provide the necessary information in this format:
%awsSecretAccessKeys = ( # HCP accounts account-name => { id => 'access-key', key => 'secret-key', }, );
account-name is the name to use in the id parameter in your s3curl commands.
For example:
%awsSecretAccessKeys = ( # HCP accounts lgreen => { id => 'bGdyZWVu', key => '35dc4c4aa08fe0deab7e292e00eb8e97', }, );
To specify the access key and secret key for additional user accounts, repeat this portion of the file for each account:
account-name => { id => 'access-key', key => 'secret-key', },
Here’s a sample .s3curl file that specifies the access key and secret key for each of two user accounts:
%awsSecretAccessKeys = (
# Hitachi Vantara account
lgreen => {
id => 'bGdyZWVu',
key => '35dc4c4aa08fe0deab7e292e00eb8e97',
},
mwhite => {
id => 'bXdoaXRl',
key => 'ad49ce36d0cec9634ef63b24151be0fb',
},
);