Menu
blog.headdesk.me
blog.headdesk.me

Moving to EC2

Posted on 2014/03/182014/03/20

Powered by AWS Cloud Computing

I had to give it a try. This blog is now moved to AWS. There are a lot of cool features but they’re sort of expensive. For example, if I put the database on RDS and memcache on ElasticCache, it will cost me $140/mo. Come on, running yum -y install memcached is not worth $50 a month!

Actually, all of this blog can fit into a single instance and I can enjoy the free usage tier, hopefully.

Being a cli-head, I gotta have some tool that doesn’t require a dozen mouse clicks. awscli is exactly what I need. To install it, provided you already have python 2.6 and pip installed:

pip install awscli

Then configure a profile and store the IAM access credential

aws –profile personal configure

Once the IAM credential is configured, I can proceed to doing a lot of things. Here are a few examples to get you started:

aws help
aws –profile personal s3 ls
aws –profile personal ec2 describe-instances
aws –profile personal ec2 describe-snapshots –owner-ids self

From within your instances, one can also query EC2 parameters using the ec2-metadata tool.

wget http://s3.amazonaws.com/ec2metadata/ec2-metadata

ec2-metadata -i -a
instance-id: i-4c24f511
ami-id: ami-baddecff

 

 

Loading

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Full text search

Recent Posts

  • Generate secure password
  • AWS Compute Savings Plans
  • AWS Zonal Shift
  • Coffee break…
  • Prevent private key from being committed to git
  • aws (14)
  • coffee (2)
  • headfi (1)
  • linux (9)
  • others (61)
  • security (2)
  • tech (41)
  • terraform (3)
  • wordpress (2)

Loading

apache aws awscli azure backup boot cloud coffee docker ec2 EL8 ElasticBeanstalk espresso featured git kernel lelit linux lvm meltdown MFA nat gateway php power proliant python rdp Redhat RHEL rpm Ryzen scp security smartarray smart switch snapshot spectre tech terraform ubuntu ubuntu upgrade vpn windows wordpress workspace

©2026 blog.headdesk.me | Powered by SuperbThemes