amazon on davidchua https://dchua.com/tags/amazon/ Recent content in amazon on davidchua Hugo -- gohugo.io en-us Wed, 27 Jul 2016 00:00:00 +0000 How to change instance size of an existing Kubernetes Cluster https://dchua.com/posts/2016-07-27-how-to-change-instance-size-of-an-existing-kubernetes-cluster/ Wed, 27 Jul 2016 00:00:00 +0000 https://dchua.com/posts/2016-07-27-how-to-change-instance-size-of-an-existing-kubernetes-cluster/ Just recently, I was trying to reverse my poor decision of starting my Kubernetes Cluster on AWS with a very simple t2.micro nodes. If you’re on AWS, your nodes are probably created via an Auto-scaling group. To change your instance size, you’ll need to: Copy the launch configuration that Kubernetes is probably running. Change the instance size of the launch configuration Update the Kubernetes Auto Scaling Group to use the new launch configuration ? Setting Up Amazon VPC to VPC Peer Connection https://dchua.com/posts/2016-07-21-setting-up-amazon-vpc-to-vpc-peer-connection/ Thu, 21 Jul 2016 00:00:00 +0000 https://dchua.com/posts/2016-07-21-setting-up-amazon-vpc-to-vpc-peer-connection/ Need to communicate between 2 Amazon VPCs securely and privately? Here’s some of my notes on setting up a VPC Peer Connection. Prerequisite Ensure that your VPCs do not share the same CIDR block and can are in different subnets Link up Note, VPC Peering is one-way only so if you create a VPC peer connection from one VPC (lets call this A) and another VPC (B), only A will be able to communicate and access B. Painless ECR authentication for Docker https://dchua.com/posts/2016-06-17-painless-ecr-authentication-for-docker/ Fri, 17 Jun 2016 15:24:00 +0800 https://dchua.com/posts/2016-06-17-painless-ecr-authentication-for-docker/ I’ve been playing around with Jenkins lately and one of the problems I’ve been facing is that it gets tedious manually doing a aws ecr get-login every 12 hours on the Jenkins instances so that my builds can push docker images into ECR. You may be thinking, why not just add the authentication into the build step before the push. Tried that but for some reason, I’m never able to get it to eval correctly. 4 Tips to Supercharge your Jekyll Static Site Hosting https://dchua.com/posts/2016-01-21-proper-jekyll-deployment-workflow-to-s3-static-hosting/ Thu, 21 Jan 2016 00:00:00 +0000 https://dchua.com/posts/2016-01-21-proper-jekyll-deployment-workflow-to-s3-static-hosting/ Supercharge your Jekyll site with these 4 tips. Put your Jekyll into a Git Repository One of the best part of being in a command-line environment is that you have the full power of the tools available to you by your OS environment. Why not make sure you never lose track of your blog posts and revisions by using the power and flexibility of Git. By committing your blog posts and changes as individual commits, you can easily revert back or track changes you make easily at your own convenience. Update: Amazon S3, Paperclip and a Curious Case of Singapore Buckets https://dchua.com/posts/2012-04-25-update-amazon-s3-paperclip-and-a-curious-case-of-singapore-buckets/ Wed, 25 Apr 2012 00:00:00 +0000 https://dchua.com/posts/2012-04-25-update-amazon-s3-paperclip-and-a-curious-case-of-singapore-buckets/ This is an update of my previous blog post, “How to get Paperclip and AWS S3 Singapore and European Buckets Working”. Since the post last year in December, Amazon had released its official AWS SDK for ruby which is now available as the ‘aws-sdk’ rubygem. Paperclip had also made an update in its core to directly support AWS-SDK over marcel’s AWS-S3 gem. This little guide is supposed to help you get quickly started uploading your images into S3 via Paperclip and the new gem. Ubuntu Oneiric 64bit RVM/Ruby1.9x/Passenger/Nginx EC2 AMI https://dchua.com/posts/2012-02-28-ubuntu-oneiric-64bit-rvmruby1-9xpassengernginx-ec2-ami/ Tue, 28 Feb 2012 00:00:00 +0000 https://dchua.com/posts/2012-02-28-ubuntu-oneiric-64bit-rvmruby1-9xpassengernginx-ec2-ami/ Create a new 64bit Ubuntu Oneiric AMI image this morning Click away It runs: RVM Ruby 1.8.7 Ruby 1.9.3-head (default) Nginx (/opt/nginx) Passenger Its comes with an 8GB Elastic Block Storage (EBS) instance. So if you’re planning to run a ruby/rails webserver, I hope this saves you time! :) AWS to include Windows instances into its Free Usage Tier https://dchua.com/posts/2012-01-16-aws-to-include-windows-instances-into-its-free-usage-tier/ Mon, 16 Jan 2012 00:00:00 +0000 https://dchua.com/posts/2012-01-16-aws-to-include-windows-instances-into-its-free-usage-tier/ This is on-top of the existing 750 micro-instance hours a month for linux instances! Which means you can now run 2 micro-instances of Windows and Linux each under the Free Usage Tier! From AWS Blog The AWS Free Usage Tier now allows you to run Microsoft Windows Server 2008 R2 on an EC2 t1.micro instance for up to 750 hours per month. This benefit is open to new AWS customers and to those who are already participating in the Free Usage Tier, and is available in all AWS Regions with the exception of GovCloud. LEMP Ubuntu Oneiric x64 EC2 AMI Image https://dchua.com/posts/2012-01-13-lemp-ubuntu-oneiric-x64-ec2-ami-image/ Fri, 13 Jan 2012 00:00:00 +0000 https://dchua.com/posts/2012-01-13-lemp-ubuntu-oneiric-x64-ec2-ami-image/ If you’re looking for a quick way to start hosting your PHP5 applications, here’s an EC2 AMI image I’ve created to help make it easier. It is a x64 Ubuntu Oneiric EBS AMI Image running a LEMP (Linux, Nginx, MySQL, PHP) stack which is suitable for those who wants to make use of Amazon’s free-tier micro instances. Click away Its currently only available for the AP-Southeast region (Singapore). Tip: Remember to create a swap partition. Using Amazon S3 as your private git repository https://dchua.com/posts/2012-01-12-using-amazon-s3-as-your-private-git-repository/ Thu, 12 Jan 2012 00:00:00 +0000 https://dchua.com/posts/2012-01-12-using-amazon-s3-as-your-private-git-repository/ Been trying to move my git repositories and apps from my old (and expensive) VPS into Amazon’s EC2 when I asked myself whether it is possible to push use Amazon S3 as a git repository. Some searching later, I found out the answer. YES! It is not only possible to push your repositories into your S3 bucket, but its also possible to do so even when your bucket is in a non-US region. Some tips to deploying Rubber-powered EC2 Rails Apps https://dchua.com/posts/2012-01-07-some-tips-to-deploying-rubber-powered-ec2-rails-apps/ Sat, 07 Jan 2012 00:00:00 +0000 https://dchua.com/posts/2012-01-07-some-tips-to-deploying-rubber-powered-ec2-rails-apps/ I’ve been playing around with Rubber, the EC2 deployment script for Rails lately and I’ve spent a huge amount of time trying to get it to work. Here are some of my notes: To setup: # Put this into Gemfile gem rubber Vulcanize! (Create the deployment scripts according to your specifications) On Rails 3.x, in your Rails application’s root directory davidc@davidc:~/my/awesome/app> vulcanize <option> # with option being any one of the following minimal_nodb, redis, passenger_nginx, complete_passenger_nginx, cruise, postgresql, resque, apache, sphinx, monit, minimal_passenger_nginx, mysql_cluster, complete_passenger_postgresql, cassandra, mongodb, complete_mongrel_mysql, complete_passenger_nginx_postgresql, base, memcached, minimal_mysql, complete_passenger_mysql, complete_passenger_nginx_mysql, munin, mysql_proxy, complete_passenger, mysql, nginx, jetty, passenger, haproxy, mongrel Edit /config/rubber/rubber. Amazon launches ElastiCache https://dchua.com/posts/2011-08-23-amazon-launches-elasticache/ Tue, 23 Aug 2011 00:00:00 +0000 https://dchua.com/posts/2011-08-23-amazon-launches-elasticache/ Amazon today launches a new service onto its AWS platform. Called, Amazon ElasticCache, a webservice that deploys, scales and operate an in-memory cache in the cloud. Think of it as running Memcached in the cloud.