June 9, 2016

Scheduling automated EBS snapshots serverless using AWS Lambda

EBS snapshot as backup mechanism is a very common practice and it also has been defined in Backup and Recovery section of EC2 best practices. If you have read my another article Save AWS costs by scheduled start and stop of EC2 instances, similar approach will be used in creating Snapshots too. Using JSON in EC2 Tags enables us to provide granular configuration details. Create an EC2 tag with name as backup and value with details containing time to take backup and retention period. Obtaining these details from Tags will enable us to configure different schedule & retention period for different EC2 instance. If no backup is needed on a particular day, that day shall be removed from the value. Read more

May 27, 2016

Sync S3 bucket to multiple S3 buckets in different region

Cross-Region Replication for Amazon S3 was introduced last year which enables replicating objects from a S3 bucket to a different S3 bucket located in different region (it can be same/different AWS account). It’s one of the most sought after feature for long time but it doesn’t solve some of the scenarios as defined below. Synchronizing to a bucket in same region. Synchronizing to multiple destination buckets. Object ACLs needs to be set at the source bucket hence multiple different ACLs needs to be set when copying across different accounts. Replication doesn’t change the ownership of the objects hence bucket policy applied at the destination bucket won’t be honored. Refer the feedback from AWS support team regarding the last point mentioned above. Read more

May 16, 2016

வல்லினம் மிகும்/மிகா இடங்கள்

என்ற விதியின் படி நிலைமொழியில் இ, ஈ, ஐ வந்து வருமொழி முதலில் உயிர் வந்தால், இடையில் (ய்) உடம்படுமெய் தோன்றும். பிற உயிர்கள் இருப்பின் (வ்) உடம்படுமெய் தோன்றும். ஏ இருப்பின் ய் / வ் ஆகிய இரண்டு உடம்படுமெய்களும் தோன்றும். என்ற விதியின் படி ய, ர, ழ என்னும் மூன்று மெய்களின் முன் மொழிக்கு முதலாக நின்ற பத்து மெய்களும் மயங்கும். மேலே குறிப்பிட்ட "மொழிக்கு முதலாக நின்ற பத்து மெய்கள்" யாது என்பதையும் நன்னூல் (102) விலக்கி உள்ளது. பன்னீர் உயிர் உம் க ச த ந ப ம வ ய ஞ ங ஈர் ஐந்து உயிர்மெய் உம் மொழி முதல் பன்னிரண்டு உயிரெழுத்துக்கள் மற்றும் க ச த ந ப ம வ ய ஞ ங ஆகிய (ஈர் ஐந்து) பத்து உயிர்மெய் எழுத்துக்கள் மட்டுமே மொழிக்கு முதல் எழுத்தாக வரும். Read more

May 15, 2016

Running IIS in Windows Docker Container in Amazon EC2

Windows Server 2016 Technical Preview 5 was released on 27th April 2016 & it’s well known by now that it supports docker with its windows server containers. Microsoft also started uploading windows server core with various application as docker images to docker hub. I was wondering whether it’s possible to run Windows 2016 TP5 on an EC2 instance and launch a windows container inside the EC2 instance. EC2 officially supports only upto Windows 2012 R2 and I couldn’t find any 2016 AMI’s in Ireland region. Hence I decided to install Windows 2016 TP5 on local VirtualBox, upload it to S3 create AMI out of it and launch the EC2 instance. Read more

May 14, 2016

Using AWS IoT button - Simple Example

Amazon did a limited release of the programmable Dash button and unsurprisingly it got sold out within a day. It’s stated in amazon.com that “We don’t know when or if this item will be back in stock.”, hence you might need to wait to get one. I take this opportunity to write a post about how I used the AWS IoT button that I received in AWS re:Invent 2015 to show case AWS IoT to the team. Read more

© Prakash P 2015 - 2023

Powered by Hugo & Kiss.