amazon-ec2
Error “You must specify a region” when running any aws CLI command
I think you need to use for example: aws ecs list-container-instances –cluster default –region us-east-1 This depends of your region of course.
Can you attach Amazon EBS to multiple instances?
UPDATE (April 2015): For this use-case, you should start looking at the new Amazon Elastic File System (EFS), which is designed to be multiply attached in exactly the way you are wanting. The key difference between EFS and EBS is that they provide different abstractions: EFS exposes the NFSv4 protocol, whereas EBS provides raw block … Read more
Add EBS to Ubuntu EC2 Instance
Since this is a new volume, you need to format the EBS volume (block device) with a file system between step 1 and step 2. So the entire process with your sample mount point is: Create EBS volume. Attach EBS volume to /dev/sdf (EC2’s external name for this particular device number). Format file system /dev/xvdf … Read more
How to get an AWS EC2 instance ID from within that EC2 instance?
See the EC2 documentation on the subject. Run: wget -q -O – http://169.254.169.254/latest/meta-data/instance-id If you need programmatic access to the instance ID from within a script, die() { status=$1; shift; echo “FATAL: $*”; exit $status; } EC2_INSTANCE_ID=”`wget -q -O – http://169.254.169.254/latest/meta-data/instance-id || die \”wget instance-id has failed: $?\”`” Here is an example of a more … Read more
How To Set Up GUI On Amazon EC2 Ubuntu server
This can be done. Following are the steps to setup the GUI Create new user with password login sudo useradd -m awsgui sudo passwd awsgui sudo usermod -aG admin awsgui sudo vim /etc/ssh/sshd_config # edit line “PasswordAuthentication” to yes sudo /etc/init.d/ssh restart Setting up ui based ubuntu machine on AWS. In security group open port … Read more
How to fix apt-get: command not found on AWS EC2? [closed]
Try replacing apt-get with yum as Amazon Linux based AMI uses the yum command instead of apt-get.
What is CPU Credit Balance in EC2? [closed]
AWS EC2 has 2 different type of instances: Fixed Performance Instances(e.g. M3, C3 etc) and Burstable Performance Instances (e.g. T2). Fixed Performance Instances provides a consistent CPU performance whereas Burstable Performance Instances provide a baseline CPU performance under normal workload. But when the workload increases Burstable Performance Instances have the ability to burst, i.e. increase … Read more