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
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
I just got a notification about the SSLv3 POODLE Vulnerability and the suggested fix is to disable SSLv3 protocol from your server that supports SSLv3. If you have your SSL certificate configured on you AWS Elastic Load Balancer, you can quickly apply this fix by logging into your AWS management console and click on your […]
Read More
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
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
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