sudo rm /var/lib/cloud/sem/* sudo /etc/init.d/cloud-init start
Tag Archives: ubuntu
Ubuntu: Attach EBS Volume & Mount it to a directory
Assume you have installed AWS Command Line Interface and you instance is started with appropriate AWS IAM Role (so you don’t need explicitly provide credentials). —- #!/bin/bash # 1. Make a directory to serve as a mount point mkdir -p /data chown `id -u` /data # 2. Attach EBS volume to the instance export AWS_DEFAULT_REGION=us-east-1 VolumeId=$(awsContinue reading “Ubuntu: Attach EBS Volume & Mount it to a directory”
Connecting to Official Ubuntu Images for EC2
Read first To connect to an instance of an official Ubuntu image for EC2, you need to ssh to it as “ubuntu” instead of as “root”. Hmm…what next to do?:)