amazon-ebs

Need a step by step guide to host a website on AWS

强颜欢笑 提交于 2019-12-03 08:21:05
I've been browsing for a week on how to use AWS. I've always been using cpanel (I'm new to web) but someone recommended AWS to me. From the info I pieced together from various websites, I think I'm supposed to do the following?: 1) copy my website files to S3 2) set up an instance in EC2 3) set up volume in EBS and attach to instance 4) set up elastic IP and attach to instance. 5) ?? The questions are, 1) is this correct? 2) Where and how do I create mySQL database? Do I use SimpleDB, Where can you find it in the management console? I'm using Windows Server 2008 32b on EC2, should I connect to

Amazon EBS, snapshots as incremental backups

点点圈 提交于 2019-12-03 05:46:19
问题 I'm working on an automated mechanism for our EBS volumes to be backed up on a daily basis. I know quite well the steps to create a new snapshot. Apparently it's all quite simple, you have an EBS volume which you can snapshot, and you can restore the snapshot anytime. Fine. But my concern is about the size of the snapshots, I know these snapshots are stored with compression in S3, and we're going to be charged depending on the size of the snapshots. If we have large amounts of data we'll have

Using Boto to find to which device and EBS Volume is mounted

▼魔方 西西 提交于 2019-12-03 05:15:49
问题 How do I find to which device an EBS Volume is mounted with Python Boto v2.0? boto.ec2.Volume has some interesting properies like attachment_state and volume_state . But are there any functions for device mapping? boto.manage.volume has get_device(self, params) but requires a CommandLineGetter. Any pointers on how to proceed or some samples of using boto.manage ? 回答1: I believe attach_data.device is what your looking for. part of volume. Heres an example, not sure if this is the best way, but

EC2: EBS device id confusion (/dev/sdf vs. /dev/xvdf)

大憨熊 提交于 2019-12-03 04:43:56
问题 I attached an EBS volume to my EC2 instance, turned it into a EXT3 file system, and successfully mounted it. However, I was thrown off a little bit initially mainly due to what the AWS console said my EBS device ID was. According to the AWS console: i-xxxxxxx :/dev/sdf (attached) I took this to mean that my attached EBS device id was /dev/sdf. So when I attempted to turn the device into a file system using this device id, I received the following error message. ubuntu@ip-xx-xx-xx-xx:~$ mkfs

Best way to load php classes in EC2 - InstanceStore, EBS or S3?

ⅰ亾dé卋堺 提交于 2019-12-03 03:59:54
What is the best way to load PHP classes in EC2 in the following scenario (#s are for illustrative purposes)? -> 100 EC2 instances running apache and APC -> 100 php classes loaded per request (via __autoload) -> 100 code changes per day between the classes (many of the classes contain auto-generated code that are periodically updated via cron). From what I gather, there are 3 ways to load the php class files in EC2: A. InstanceStore - The local (virtual) hard drive of an EC2 instance -> Code must be pushed separately to each instance. -> Fastest loading since no need to go over the network B.

Change read/write access of a folder in Ubuntu Linux

六月ゝ 毕业季﹏ 提交于 2019-12-03 00:19:52
I want to create a folder and write a file in the created folder in an Amazon EBS volume from a Java Servlet installed on Amazon EC2 running Ubuntu. I have mounted the EBS volume at /mnt/my-address But the Servlet is unable to create the folder and write the file? My Question Why Java sevlet is not able to create a folder on Amazon EBS mounted volume? David Levesque Looks like your folder does not have the correct read/write permissions. Try granting read-write access to all users to the directory in question, e.g.: sudo chmod -R ugo+rw /mnt/my-address If you are uncomfortable with granting

Backup solutions for AWS EC2 instances [closed]

让人想犯罪 __ 提交于 2019-12-02 22:43:36
I'm looking for a backup solution for Amazon EC2 instances. I found this: http://www.n2ws.com and I wanted to know if there were other ones. Thank you PS: It's possible to automatically backup RDS databases using Amazon solution but there isn't anything for EC2 instances... Is there? I've been using Skeddly for several months now to automatically backup the EBS volumes attached to my EC2 instances. I'm really happy with it so far. I liked the way I could define which instances to backup: only instances with a specific tag are backed up. I just have to add this tag to the instances I want to

Amazon EC2 and EBS disk space problem

喜欢而已 提交于 2019-12-02 22:03:06
I am having a problem reconciling the space available on my EBS volume. According to the AWS console the volume is 50GB and is attached to an instance. If I ssh to this instance and do a df -h, I get the following output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 13G 3.0G 81% / udev 858M 76K 858M 1% /dev none 858M 0 858M 0% /dev/shm none 858M 72K 858M 1% /var/run none 858M 0 858M 0% /var/lock none 858M 0 858M 0% /lib/init/rw I am pretty new to AWS. I interpret this as "there is a device attached and it has 15GB capacity. Whats more, you're nearly out of space!" Can anyone point

Automount EBS volume in Amazon EC2 Windows Instance

拟墨画扇 提交于 2019-12-02 21:15:30
Does anyone know how to auto-mount an Elastic Block Storage (EBS) volume when starting a Windows 2003 instance in Amazon's Elastic Compute Cloud (EC2)? Setup: Make sure the EBS volume is formatted and labeled (in the example I used the label PDRIVE). Setup a drive mapping using Ec2ConfigServiceSettings.exe Install Java on the instance Install the EC2 API command line tools Install a copy of your cert and private key Install a copy of curl.exe (open source tool) You can use the group policy editor to set this script as your startup script. See http://technet.microsoft.com/en-us/library/cc739591

Using Boto to find to which device and EBS Volume is mounted

假装没事ソ 提交于 2019-12-02 19:39:11
How do I find to which device an EBS Volume is mounted with Python Boto v2.0? boto.ec2.Volume has some interesting properies like attachment_state and volume_state . But are there any functions for device mapping? boto.manage.volume has get_device(self, params) but requires a CommandLineGetter. Any pointers on how to proceed or some samples of using boto.manage ? Cbaker510 I believe attach_data.device is what your looking for. part of volume. Heres an example, not sure if this is the best way, but it outputs volumeid, instanceid, and attachment_data something like: Attached Volume ID -