| 1 | = Building AMIs for easier deployment = |
| 2 | |
| 3 | If your region doesn't yet have a Sahana AMI in, then it is easy to create one which allows easier deployment of future instances for both you & others. The only cost to you is a small amount of time to publish it & then using up your 1Gb Snapshot allowance within the free tier. |
| 4 | |
| 5 | * Install the instance as-above |
| 6 | * Don't run the configure script |
| 7 | * Shutdown the EBS instance. |
| 8 | {{{ |
| 9 | shutdown -h now |
| 10 | |
| 11 | }}} |
| 12 | |
| 13 | * Go to your aws console for the current region at [https://console.aws.amazon.com/ec2/home | EC2 Console] |
| 14 | |
| 15 | * Select the debian instance you just prepared in the "Instances" |
| 16 | |
| 17 | * Select " Create Image (EBS AMI) " in the "Instance Actions" drop down. |
| 18 | |
| 19 | [[Image(http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Amazon/create-image.png, 75%)]] |
| 20 | |
| 21 | * Choose an Image name - Lets say - "Sahana Eden" and fill in a description. |
| 22 | |
| 23 | [[Image(http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Amazon/create-image-config.png, 75%)]] |
| 24 | |
| 25 | * Click "Create this Image" |
| 26 | |
| 27 | * Go to the "AMIS" menu and select "Owned by me" and "All Platforms" in the Viewing dropdown. |
| 28 | |
| 29 | [[Image(http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Amazon/ami-built.png, 75%)]] |
| 30 | |
| 31 | * Wait for about 5 minutes and hit refresh for the AMI you just built to appear. |
| 32 | |
| 33 | * Select the AMI and click the Permissions button - Select public, to make the image public. |
| 34 | |
| 35 | [[Image(http://eden.sahanafoundation.org/raw-attachment/wiki/InstallationGuidelines/Amazon/ami-permissions.2.png, 75%)]] |
| 36 | |
| 37 | Keep Templates as EBS Volumes as this is cheaper than Snapshots |