The Dynamic DynamoDB project is today releasing an AWS CloudFormation template to make it as easy as possible to get started with Dynamic DynamoDB. Dynamic DynamoDB is a popular open source product that provides auto scaling for AWS DynamoDB.
The template will launch a t1.micro EC2 instance with the latest version of Dynamic DynamoDB pre-installed. All you need to do is to provide a configuration file to use, the rest is handled automatically.
You can read more and get started with the CloudFormation template in the project documentation.
If you have any issues, please feel free to submit an issue at the project’s GitHub Issues page.
Recently I created a CloudFormation template with a Windows server with authentication towards Active Directory. You can use the following snippet to achieve that:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I recently needed to convert an AWS instance-store AMI to an EBS backed AMI. Here’s the steps I took in order to fix that. It’s a ext3 file system in this example, but it should work fine with an ext4 as well.
Launch your instance-store AMI
Create a new EBS in the same availability zone
Attach the EBS to the instance-store instance on `/dev/sdh`
Create the file system
mkfs.ext3 /dev/sdh
Mount the device
mkdir /mnt/ebs
mount /dev/sdh /mnt/ebs
Shut down any running applications or databases that you have
rsync your system to the EBS volume
rsync -avHx / /mnt/ebs
rsync -avHx /dev /mnt/ebs
Label the device
tune2fs -L '/' /dev/sdh
Sync and unmount the device
sync;sync;sync;sync && umount /mnt/ebs
In the AWS Console, make a snapshot of the EBS drive
Make a note of the AKI and ARI of the currently running instance (skip this if none are set)
When the snapshot is complete, right click on it and choose "Create Image from Snapshot"
Use the wizard to set an name and description of your new AMI. Also choose the right AKI etc.
You should now be able to start a new instance from the newly created AMI.
I had some problems finding out how to access parent data in MeteorJS. Consider the following code:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As we iterate over cars, this will be set to the current car object. But in order to remove the car from the Garage collection, we will need the _id of the parent garage. The parent data is accessible in the template event handler. The events take an event map, and in the case of events in the template event handler you get two arguments; event and template. The template refers to template where the handler is defined (i.e. the parent template). This is the key. So to implement the removeCar button, write like this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I’m writing a project where I’m using Bootstrap 3 and MeteorJS. As MeteorJS ships with Bootstrap 2, we’re using Meteorite to handle packages.
If you haven’t installed Meteorite already, please have a look at the Meteorite README.
Install necessary packages
We will need to install three packages, one for Facebook authentication support, one for Bootstrap 3 itself and one for the accounts user interface with Bootstrap 3 support.
Ok, let’s take a look at the client side HTML code. I’ve two templates, one with the body text and one with the Bootstrap 3 navbar. Note how easy it is to add the loginButtons to the menu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters