Pre-requisites, a VM like the one create in Creating and Configuring VMs
Log in to the VM and start installing the OpenStack CLI client. (You can also install it in your own workstation, but your mileage might vary).
sudo yum -y install python3-devel python3-pip
sudo python3 -m pip install --upgrade pip
sudo pip3 install python-openstackclient
# scp SOURCE USER@DESTINATION:
$ scp path-of-downloaded-openrc-file cloud-user@your-floatingIP:openrc.sh
source openrc.sh
openstack server list
Pre-requisites, a VM like the one create in Creating and Configuring VMs. And the OpenShift client from the previous exercise
Log in to the VM you created and have the OpenStack client installed.
Source the openrc.sh file, and enter your password when prompted
source openrc.sh
Create OpenStack EC2 credentials
openstack ec2 credentials create
openstack ec2 credentials list
Install and configure the s3cmd tool
sudo yum install s3cmd
s3cmd --configure --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY \
--host=a3s.fi --host-bucket='%(bucket)s.a3s.fi'
Upload a file to the bucket
s3cmd mb s3://YYYYMMDD-s3-yourlastname
s3cmd put yourlastname-2.txt s3://YYYYMMDD-s3-yourlastname/yourlastname2.txt -P
Check it works
curl https://a3s.fi/YYYYMMDD-s3-yourlastname/yourlastname2.txt