Howto to install AWS CodeDeploy agent on EC2 instance

Howto to install AWS CodeDeploy agent on EC2 instance

This script will install the latest version of AWS CodeDeploy agent on your EC2 instance running Ubuntu. First, let’s create a bash script that will do this for us nano install_code_deploy_agent.sh Add this into your script: #!/bin/bash sudo apt-get update sudo apt-get install python-pip python-pip ruby2.0 wget -y cd /home/ubuntu wget https://aws-codedeploy-us-west-2.s3.amazonaws.com/latest/install chmod +x ./install […]

Read More

DynamoDB for Javascript – cheatsheet

DynamoDB for Javascript – cheatsheet

The following snippets can be used for interacting with AWS DynamoDB using AWS Javascript API. PutItem var params = { TableName: 'table_name', Item: { // a map of attribute name to AttributeValue attribute_name: { S: 'STRING_VALUE' } // more attributes... }, Expected: { // optional (map of attribute name to ExpectedAttributeValue) attribute_name: { Exists: true, […]

Read More

Scaling WordPress in Amazon Cloud

Scaling WordPress in Amazon Cloud

Scaling WordPress is something I’ve been studying for a long time. By nature, WordPress isn’t designed to run on multiple servers unless you do some re-architecting on the server-side. Finally I’ve found a way to scale WordPress elastically and on demand. ?What I’m about to share has worked for me personally and I don’t guarantee […]

Read More

Basic Auto Scaling configuration on AWS

Basic Auto Scaling configuration on AWS

Auto Scaling The following configuration allows me to sleep at night. It ensures that at least one EC2 instance will be running at any one time. ?The Auto Scaling CLI provided by Amazon is a simple tool that’s required for this configuration. To successfully configure auto scaling you need to follow these 2 steps: 1. […]

Read More

Create AMI image of an EC2 instance store volume

Create AMI image of an EC2 instance store volume

For my reference, these are the steps involved to create an AMI image backup of an Instance Store EC2 volume. 1. Install AMI tools. Might need to uncomment multiverse locations in /etc/apt/sources.list. sudo apt-get install ec2-ami-tools 2. Bundle the volume sudo ec2-bundle-vol -d /tmp -k /mycerts/ec2key.pem --cert /mycerts/cert-xxxxxxxxx.pem -u AWS_ACCOUNT_NUMBER -a -e /tmp -r i386 […]

Read More