Category

AWS

AWS Cross-Account Assume Role

Recently I need to manage more than 1 AWS account which it’s not under the Organization unit. In order to browse around the 2 account I may need to have 2 set of credential and keep login and logout (unless i open 2 difference browser or using incognito mode.) Found the the cross account assume…

Passing client User-Agent from CloudFront to origin

These few days I try to setup the CloudFront for my website and everything working fine as per expected except the real user agent is not passing from the CloudFront to my origin server, instead it’s replace the user-agent to “Amazon CloudFront” when I check from my Nginx Log. After some Googling, and find out…

Updating AWS CloudFront IP to Nginx

CloudFront become a very common CDN/Reverse proxy nowadays because of their high availability and easy to use. So if you place a CloudFront as a proxy server in front of your Nginx web server, than the Nginx web server not able to get the real customer IP address. Same thing will happen if you using…

Hosting private static content in S3 using AWS Cloudfront

AWS S3 is always a best place to keep your static content for your website due to the nature of high durability and also high availability. And it’s always highly recommend to set your S3 bucket as private, but how to host a web static file without a public access? This is where the AWS…

Auto update CloudFront IP into security group using Lambda

AWS CloudFront (CDN) provide a better performance and low latency to the website visitor by caching the content at the EDGE location which closer to the visitor location. CloudFront not only provide the performance improvement to the end visitor, it’s also provide the lower cost of content delivery from your origin to the end visitor…

Deploying VPC with Terraform

Terraform is an open-source infrastructure as code software tools created by HashiCrop and it enables user to define and provisioning a datacenter infrastructure using high-level configuration language which is know as HashiCorp Configuration Language (HCL) or optionally you can using JSON. Terraform is platform independent tools where you can use it to code for infrastructure…

Using AWS CloudFormation to start/stop EC2/RDS instance

AWS getting more popular nowadays where more and more company moving their workload on the AWS cloud platform including the development and UAT environment. Normally development and UAT environment only use by the programmer or staff during the working hour which around 8 to 12 hours per day excluding the public holiday and weekend. Let’s…

Increase disk space on Linux EC2

You can attach an EBS volume as another device (ex. /dev/sdf) to an instance for more disk space. Once you have a mount point set in Linux OS, you can copy your website files there and point the web service config to point to that directory for the website. As another option, you can expand…

AWS

AWS S3 delete folder recursively using CLI

Last week when I check on my AWS S3 usage and found out that there are a lot of old and small log file which store in the date format folder name, I try to delete the file using the AWS S3 console and due to the number of unique…

AWS

AWS Certified Solutions Architect – Associate

Around 2 years on board onto AWS platform, finally I get my first AWS Solutions Architect Associate certificate. It’s take me about few months to prepared and 2 weeks of intensive study + unlimited exam practices, finally I manage to pass the exam in my first attend. Just to share…

google.com, pub-3772983857049267, DIRECT, f08c47fec0942fa0