
USING HYPERSTORE WITH OBJECT LOCK 7
DEPLOY AND CONFIGURE AWS CLI
Once HyperStore is ready for Object Lock, a third-party application is required to create new buckets with
Object Lock enabled and to set new or change Object Lock retention policies.
In this section, the AWS CLI will be used with Object Lock. First the AWS CLI will be deployed and
configured using a CentOS Linux server. The AWS CLI can also be installed on Windows systems,
however that won’t be covered here. For details on installation, see https://cloudacademy.com/blog/how-
to-use-aws-cli/.
Once the AWS CLI is deployed and configured for use with HyperStore, there will be a few example
commands on how to create a new bucket in HyperStore with Object Lock enabled, create a new
GOVERANCE policy on the new bucket and set the default retention time.
Note: The S3 endpoint must be resolvable by name. IP addresses cannot be used. Either have the IP
address to name mapping in the /etc/hosts file or in the DNS server. To test, ping the S3 endpoint. For
example:
$ ping s3-reg01.cloudiantme.local
PING s3-reg01.cloudiantme.local (10.50.125.88) 56(84) bytes of data.
64 bytes from s3-reg01.cloudiantme.local (10.50.125.88): icmp_seq=1 ttl=64 time=0.355 ms
DEPLOY THE AWS CLI ON LINUX
Prerequisites
To deploy the AWS CLI, at least Python 2 version 2.6.5+ or Python 3 version 3.3+ is required to be
installed. To verify the current python version, run the following command:
$ python --version
AWS CLI Installation on Linux
The recommendation for installing the AWS CLI is to use the bundled installer provided by AWS. The
bundled installer includes all dependencies required for the installation.
1. To begin the installation run the following command:
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-
bundle.zip"
2. Next, you must unzip the downloaded package from step 1:
$ unzip awscli-bundle.zip
3. Once the package in unzipped, you can run the installation:
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
Using the -b option allows all users to use the AWS CLI from any directory, meaning you will not need to
specify the install directory in the user’s $PATH variable.
CONFIGURE THE AWS CLI
Once you have installed the AWS CLI, you now need to configure it to be able to connect to a HyperStore
user account. To do so, enter the following from your command prompt:
$ aws configure
Through aws configure, the AWS CLI will prompt you for 4 pieces of information. The S3 HyperStore user
account access key ID and secret access key serve as the account credentials. The other information that
is needed is the region name and output format. It is possible to generate new credentials within
HyperStore Identity and Access Management (IAM) also if desired.