• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Use IBM Cloud CDN and Cloud Object Storage

By Abhishek Ghosh December 17, 2018 7:22 pm Updated on December 17, 2018

How To Use IBM Cloud CDN and Cloud Object Storage

Advertisement

Previously we published various guides on Rackspace Cloud Files to use CDN and Cloud Object Storage for hosting static website to hosting jQuery powered video players. Lately, Rackspace Cloud Files has been very costly with a fixed per month fees for just having the account. We have similar guides on HP Cloud CDN (HP Public Cloud has been closed). Other CDNs like KeyCDN not exactly cost effective and has marketing tricks. We noticed that IBM Cloud CDN uses Akamai. This website uses CacheFly CDN and it is too costly for ordinary usage. Performance of CacheFly CDN for reverse proxy, without doubt, is among the best. But again, it is very costly for day to day testing works where upload is the need.

New users must identify that IBM Cloud CDN and Cloud Object Storage are two separate services. It is practical to have an IBM Cloud account verified with a credit card. We have not tested with a free account. Only using IBM Cloud Object Storage will help to upload the content and make it publicly accessible. That will be great for only the US users (most of the internet users are from the US). Adding IBM Cloud’s CDN service will make that thing globally distributed – it is a good optional addition for global users. We are describing two systems as separate two paragraphs.

 

How To Use IBM Cloud Cloud Object Storage

 

We will suggest using Amazon S3 command line tool (s3cmd is a quite popular tool) for the command line users. It is very easy to configure with IBM Cloud. IBM has their own tools, as well as OpenStack tools can be used. However, they are not just easy – configuring security demands a good grasp of using different IaaS services. CyberDuck is a good GUI tool for any kind of object storage and CDN.

Advertisement

---

As for Amazon S3 command line tool, as a prerequisite :

  1. Microsoft Windows 10 needs configuring Ubuntu Bash
  2. Any GNU/Linux needs nothing more to do
  3. MacOS X needs nothing more to do, yet we commonly use iTerm2 with Homebrew

We need to have Python PIP installed (steps not shown in this guide). Just run this command to install S3CMD :

Vim
1
2
3
#
pip install s3cmd
#

In the meantime, go to IBM Cloud’s dashboard, and then to Cloud Object Storage. Create a “service credential”. You’ll find the official guide here :

Vim
1
2
#
https://console.bluemix.net/docs/services/cloud-object-storage/iam/service-credentials.html#service-credentials#

It is just clicking an option on left-hand side pane of Cloud Object Storage management window.

Add Inline Configuration Parameters as :

Vim
1
{"HMAC":true}

The above parameter makes Cloud Object Storage compatible with the S3 authorization methods. Look at the JSON output in that webpage. You’ll need access key and secret key from that output. Rest we are supplying you here.

How To Use IBM Cloud CDN and Cloud Object Storage

After it get installed, run :

Vim
1
2
3
#
s3cmd --configure
#

You’ll be asked the below questions :

Vim
1
2
3
4
5
6
7
8
9
Access Key:
Secret Key:
Default Region [US]:
S3 Endpoint [s3.amazonaws.com]:
DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]:
Encryption password:
Path to GPG program [/usr/bin/gpg]:
Use HTTPS protocol [Yes]:
HTTP Proxy server name:

You’ll input like this :

Vim
1
2
3
4
5
6
7
8
9
Access Key: <copy-paste it>
Secret Key: <copy-paste it>
Default Region [US]: <leave blank and hit enter key>
S3 Endpoint [s3.amazonaws.com]: s3-api.us-geo.objectstorage.softlayer.net
DNS-style bucket+hostname... : %(bucket)s.s3-api.us-geo.objectstorage.softlayer.net
Encryption password:
Path to GPG program [/usr/bin/gpg]: /usr/bin/gpg
Use HTTPS protocol [Yes]: Yes
HTTP Proxy server name: <leave blank and hit enter key>

Your configuration will be saved in the file ~/.s3cfg. You can run cat on that file or open with text editor like nano. The important part of the configuration file as this summary :

~/.s3cfg
Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[default]
access_key = <yours>
access_token = <yours>
...
bucket_location = US
...
expiry_date =
expiry_days =
...
gpg_command = /usr/bin/gpg
...
host_base = s3-api.us-geo.objectstorage.softlayer.net
host_bucket = %(bucket)s.s3.amazonaws.com
...
secret_key =
send_chunk = 65536
...
website_endpoint = http://%(bucket)s.s3-website-%(location)s.amazonaws.com/
website_error =
website_index = index.html

You can run command of this format to upload example.txt from same directory you are to upload it in the bucket named some-bucket :

Vim
1
s3cmd --acl-public put example.txt s3://some-bucket/example.txt

You’ll receive response like :

Vim
1
2
3
upload: 'bashrc.old.txt' -> 's3://some-bucket/example.txt'  [1 of 1]
3106 of 3106   100% in    3s  1007.41 B/s  done
Public URL of the object is: http://some-bucket.s3-api.us-geo.objectstorage.softlayer.net/example.txt

Open that URL on browser to view the content :

Vim
1
2
3
#
http://some-bucket.s3-api.us-geo.objectstorage.softlayer.net/example.txt
#

That is it. If you want to install CyberDuck as a visual tool to upload then first download the application and install it. There is a guide here :

Vim
1
2
3
4
#
https://console.bluemix.net/docs/services/cloud-object-storage/gui/cyberduck.html#transfer-files-using-cyberduck
 
#

 

How To Use IBM Cloud CDN

 

It is funny to use IBM Cloud CDN. It is simply reverse proxy to Cloud Object Storage. Create a CDN instance with a domain name like bluemix.net or ibm.com (it does not matter as long you are not going to use your own domain).

Your main work is at Object Storage settings (not server), use S3 object store option, endpoint will be s3-api.us-geo.objectstorage.softlayer.net, bucket name is name of bucket in Cloud Object Storage (otherwise it will fail to find where is the file), change SSL certificate from DV SAN (default) to “default”. You’ll get some new URL for the CDN, like bucket.cdnedge.bluemix.net. Whenever any file or directory will be uploaded on Object Storage as publicly available, it will be available via CDN.

Tagged With cyberduck ibm cloud object sotorage , file transfer protocol in ibm cloud object storage , How to locate the bucket name in the IBM cloud storage details? , ibm cloud object storage cdn , ibm cloud storage language:en , ibm object storage language:en
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Use IBM Cloud CDN and Cloud Object Storage

  • GNU Privacy Guard (GPG) For Secure Cloud Computing

    GNU Privacy Guard (GPG) is used for code signing in Free Software. For secure Cloud Computing, GPG can be used for Emails and Messaging.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • IBM Cloud and Softlayer : A Conflicting Acquisition

    IBM Cloud and Softlayer marriage believed believed to be the a conflicting business. SoftLayer can only bring benefits in terms of cost, offers, facilities.

  • Upload to IBM Cloud CDN Using OpenStack Swift Client

    Here is How Upload to IBM Cloud CDN Using OpenStack Swift Client. We have a helper Python script for the process. IBM Cloud CDN needs Pay-as-you-go account.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy