{"id":1070,"date":"2015-10-30T09:50:39","date_gmt":"2015-10-30T00:50:39","guid":{"rendered":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/?page_id=1070"},"modified":"2023-07-20T18:57:29","modified_gmt":"2023-07-20T09:57:29","slug":"kusanagi-for-aws","status":"publish","type":"page","link":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/cloud\/kusanagi-for-aws\/","title":{"rendered":"KUSANAGI for AWS"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws01.png\" alt=\"AWS\" width=\"474\" height=\"272\" \/><br \/>\n<span style=\"color: #d0d0d0; font-size: x-medium;\">Amazon Web Services<\/span><\/p>\n<p><em>KUSANAGI for AWS<\/em> is a free virtual machine image built to execute WordPress at high speeds on Amazon Web Services.<\/p>\n<p>System requirements: at least a t.2medium instance (minimum 4GB memory)<\/p>\n<p>If you want to use for KUSANAGI for enterprise, KUSANAGI for AWS Business Edition is here:<br \/>\n<a href=\"https:\/\/www.prime-strategy.co.jp\/business-edition\/\" target=\"_blank\" rel=\"noopener\">KUSANAGI for AWS Business Edition<\/a><\/p>\n<h2>How to use KUSANAGI for AWS<\/h2>\n<p><small>*\u00a0This guide assumes you have an account with AWS and are able to access the <a href=\"https:\/\/console.aws.amazon.com\/console\/home\" target=\"_blank\" rel=\"noopener\">AWS Management Console<\/a>.<\/small><\/p>\n<h3>1. Obtain the virtual machine image<\/h3>\n<p>Obtain the image for <em>KUSANAGI for AWS<\/em> from AWS Marketplace and make it ready for use on Amazon Web Services.<\/p>\n<p><small>* AWS Marketplace is an online store for finding and purchasing software and services that can be executed on AWS. <em>KUSANAGI for AWS<\/em> is available on AWS Marketplace.<\/small><\/p>\n<h4>a. Browse AWS Marketplace<\/h4>\n<p>You can browse AWS Marketplace from the Management Console.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws02.png\" alt=\"aws02\" width=\"474\" height=\"272\" \/><\/p>\n<p>Once you log in you will see the above screen. Click &#8220;EC2&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws03.png\" alt=\"aws03\" width=\"474\" height=\"270\" \/><\/p>\n<p>Click &#8220;Launch Instance&#8221;.<\/p>\n<p>&#8220;Step 1: Choose an Amazon Machine Image (AMI)&#8221; screen will display.<\/p>\n<h4>b. Select an image<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws04.png\" alt=\"aws04\" width=\"474\" height=\"270\" \/><\/p>\n<ol>\n<li>On the left menu click on &#8220;AWS Marketplace&#8221;.<\/li>\n<li>Search for &#8220;kusanagi&#8221;.<\/li>\n<li>Confirm that <em>KUSANAGI for AWS<\/em> appears and click &#8220;Select&#8221; on the right.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws05.png\" alt=\"aws05\" width=\"474\" height=\"267\" \/><\/p>\n<p>The product details for\u00a0 will display. Click &#8220;Continue&#8221; on the bottom right.<\/p>\n<h4>c. Step 2: Choose an Instance Type<\/h4>\n<p>You will select the instance type you will use for your selected virtual machine image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws06.png\" alt=\"aws06\" width=\"474\" height=\"270\" \/><\/p>\n<ol>\n<li>From Type, select t2.medium.<br \/>\n* KUSANAGI requires at least 4GB of memory so we suggest t2.medium.<\/li>\n<li>On the bottom right, click &#8220;Next: Configure Instance Details&#8221;.<\/li>\n<\/ol>\n<h4>d. Step 3: Configure Instance Details<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws07.png\" alt=\"aws07\" width=\"474\" height=\"270\" \/><\/p>\n<p>Click &#8220;Next: Add Storage&#8221;.<\/p>\n<h4>e. Step 4: Add Storage<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws08.png\" alt=\"aws08\" width=\"474\" height=\"270\" \/><\/p>\n<p>Click &#8220;Next: Tag Instance&#8221;.<\/p>\n<h4>f. Step 5: Tag Instance<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws09.png\" alt=\"aws09\" width=\"474\" height=\"270\" \/><\/p>\n<p>Click &#8220;Next: Configure Security Group&#8221;.<\/p>\n<h4>g. Step 6: Configure Security Group<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws10a.png\" alt=\"aws10a\" width=\"474\" height=\"105\" \/><\/p>\n<p>In order to strengthen security, change the SSH port source (port range of 22) to My IP, and you can designate the IP address you are currently using.<\/p>\n<p><small>\u203bIf current connection Ip address specifics in range, leave SSH port source to custom settings in CIDR. Add SSH rules in My IP in case of you couldn&#8217;t specific the range. Delete it after you done.<\/small><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/kusanagi8\/wp-content\/uploads\/2016\/04\/aws-1_15_02.png\" alt=\"aws-1_15_02\" width=\"249\" height=\"516\" class=\"aligncenter size-full wp-image-2839\" \/><br \/>\nSelect HTTPS by add rules and save to available to shows in SSH.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws10b.png\" alt=\"aws10b\" width=\"474\" height=\"270\" \/><\/p>\n<p>Click &#8220;Review and Launch&#8221;.<\/p>\n<h4>h. Step 7: Review Instance Launch<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws11.png\" alt=\"aws11\" width=\"474\" height=\"270\" \/><\/p>\n<p>Confirm all the details then click &#8220;Launch&#8221; on the bottom right.<\/p>\n<h4>i. Create and download a key pair<\/h4>\n<p>When you click on &#8220;Launch&#8221;, the key pair window will display.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws12.png\" alt=\"aws12\" width=\"474\" height=\"349\" \/><\/p>\n<p>Select &#8220;Create a new key pair&#8221;, and enter any name for it. Then click &#8220;Download Key Pair&#8221;.<\/p>\n<p>Confirm that your key pair has been downloaded successfully and click &#8220;Launch Instances&#8221;.<\/p>\n<p>The creation of your virtual machine image is now complete.<\/p>\n<h3>2. Activate virtual machine<\/h3>\n<p>The activation of your virtual machine will begin.<\/p>\n<h4>a. Displaying your instance<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws13.png\" alt=\"aws13\" width=\"474\" height=\"229\" \/><\/p>\n<p>The &#8220;Launch Status&#8221; screen will be displayed so click &#8220;View Instances&#8221; when it appears.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws14.png\" alt=\"aws14\" width=\"474\" height=\"270\" \/><\/p>\n<p>Once the status has changed to &#8220;2\/2 checks passed&#8221; the creation of your instance is complete. If you click on your new instance, on the bottom of your screen you can see various details. Make note of the Public DNS and the Public IP.<\/p>\n<h3>3. Elastic (static IP) settings<\/h3>\n<p>3-1. Assign an Elastic IP Address to Your Instance. Click[Elastic IP]and click [Assign New Elastic IP Address] in Amazon Website Services management console menu to assign an Elastic IP Address to your Instance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/kusanagi8\/wp-content\/uploads\/2016\/04\/aws-3_01_02.png\" alt=\"aws-3_01_02\" width=\"474\" height=\"592\" class=\"aligncenter size-full wp-image-2844\" \/><\/p>\n<p>3-2. Click [Action] pull down&#8217;s and select [Access to Address]to assign an Elastic IP Address to your instance by instance log.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/kusanagi8\/wp-content\/uploads\/2016\/04\/aws-3_01_01.png\" alt=\"aws-3_01_01\" width=\"474\" height=\"170\" class=\"aligncenter size-full wp-image-2845\" \/><\/p>\n<h3>4. Log in to the virtual machine and prepare for initialization<\/h3>\n<p>Below we will explain how to log in to your virtual machine in preparation for initialization.<\/p>\n<h4>a. Log in to your virtual machine<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws15.png\" alt=\"aws15\" width=\"474\" height=\"299\" \/><\/p>\n<p>Using an SSH client such as Poderosa or other terminal software, log in to your virtual machine.<br \/>\nThe host name is your Public DNS or Public IP. The account is &#8220;centos&#8221;, and the authentication type is &#8220;Public key&#8221;. In &#8220;Key file&#8221;, please upload your key pair that was downloaded earlier.<\/p>\n<p>Once the login is successful, the following screen will display.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-content\/uploads\/2015\/10\/aws_28-1.png\" alt=\"\" width=\"702\" height=\"410\" \/><\/p>\n<h4>b. Switch to the root user<\/h4>\n<p>Enter the following to switch to the root user.<\/p>\n<pre>$ sudo su -<\/pre>\n<p>Check that you are the root user.<\/p>\n<pre>[root@&lt;hostname&gt; ~]#<\/pre>\n<p>If the command prompt ends in # you have successfully switched to the root user.<\/p>\n<p>For instructions on initialization please see the following guide.<\/p>\n<p><input type=\"button\" value=\"KUSANAGI Initialization\"  onclick=\"location.href='https:\/\/kusanagi.tokyo\/en-kusanagi8\/document\/kusanagi-init\/'\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Web Services KUSANAGI for AWS is a free virtual machine image built to execute WordPress at high speeds on Amazon Web Services. System requirements: at least a t.2medium instance (minimum 4GB memory) If you want to use for KUSANAGI for enterprise, KUSANAGI for AWS Business Edition is here: KUSANAGI for AWS Business Edition How [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":49,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1070","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/pages\/1070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/comments?post=1070"}],"version-history":[{"count":21,"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/pages\/1070\/revisions"}],"predecessor-version":[{"id":3771,"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/pages\/1070\/revisions\/3771"}],"up":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/pages\/49"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/en-kusanagi8\/wp-json\/wp\/v2\/media?parent=1070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}