TechnoApple Blogs
Practical guides, tutorials, and insights on cloud, full-stack development, and everything in between.
Quick Start to Install Google Cloud CLI
2021/11/01·1 min readThis blog shows a quick memo on how to get started with the GCP Cloud CLI.
Setting Up Next.js on AWS EC2 Instance
2021/10/02·2 min readNext.js is a React-based web application framework built on top of Node.js. AWS EC2 is Amazon's cloud computing service which hosts VMs in the cloud. In this tutorial, we will manually create an EC2 instance, SSH into it, and install and set up Next.js.
How to Auto Remediate AWS resources By Using AWS Config
2021/09/11·1 min readAWS Config is a service that will record and evaluate all the changes at your AWS services, it will also provide remediation for the changes. This blog will demo how to use AWS Config to auto remediate S3 bucket to enable the versioning.
How to Setup Swagger with Next.js
2021/09/09·4 min readThis blog walks through how to use Swagger / OpenAPI to add API documentation to Next.js, a Node.js framework. It covers how to create APIs in Next.js and add API documentation with Swagger using swagger-jsdoc and swagger-ui-react.
How to Delete GCP Projects
2021/07/08·1 min readThis is a quick note on how to delete unused GCP projects to save money.
How to Setup Swagger OpenAPI with Express.js
2021/07/01·3 min readThis blog walks through how to use Swagger / OpenAPI to add API documentation to Express.js, a Node.js framework. It covers how to create APIs in Express.js and add API documentation with Swagger using the OpenAPI 3.0 specification.
Use Lambda with Node.js to Insert Data Into DynamoDB
2021/06/01·2 min readThis blog shows how to create an AWS Lambda with Node.js and insert a record into DynamoDB. It also shows how to manually deploy Lambda as a package to AWS from your local development environment.
How to Deploy Lambda with Node.js with Package Dependencies
2021/05/06·3 min readAWS Lambda is a serverless compute service that lets you run code on AWS-managed servers in the cloud. You only need to worry about your code, and AWS will manage the underlying servers. This blog shows how to get started with Lambda using Node.js with package dependencies. The code includes one dependency module, util, and uses zip to compress the index.js and node_modules folder.
How to Deploy Lambda with Node.js without Dependencies
2021/05/03·3 min readAWS Lambda is a serverless compute service that lets you run code on AWS-managed servers in the cloud. You only need to worry about your code, and AWS will manage the underlying servers. This blog shows how to get started with Lambda using Node.js with no package dependencies.
How to Self-Host Sentry.io on AWS EC2
2021/05/01·3 min readThis blog shows how to self-host Sentry.io on an AWS EC2 instance.
How to Get Started with Sentry Error Tracking
2021/04/01·2 min readThis blog shows how to get started with Sentry.io for tracking JavaScript errors and performance.
How to Collect Memory Disk Usage By Using CloudWatch Agent
2021/03/20·2 min readThis blog provides a quick guide on how to set up CloudWatch Agent manually on an EC2 Linux instance. CloudWatch Agent enables you to collect system or custom metrics from Amazon EC2 instances across operating systems. You can install CloudWatch Agent on AWS Cloud or on-premises servers, Linux, or Windows as well.
List of AWS CloudTrail Record Fields
2021/03/07·1 min readAWS CloudTrail helps you record all API calls in your AWS account, enabling you to detect who is making what kind of changes to the AWS environment.
How to Send MongoDB Logs to CloudWatch Logs
2021/03/05·1 min readThis blog shows how to send MongoDB log files to AWS CloudWatch Logs. You can send multiple logs to AWS CloudWatch Logs by defining the awslogs.conf file.
How to Use CloudWatch Logs Insights to Analyze Logs
2021/03/05·1 min readHere, I provide examples of how to use CloudWatch Insights to search or analyze log data in CloudWatch logs. You can query one log group or multiple logs together to analyze the data, and you can also save the query and save the result to the CloudWatch dashboard.
WebSite Performance Improvement - Lighthouse
2021/03/04·1 min readTips and techniques for improving website performance using Google Lighthouse recommendations, including text compression, reducing unused CSS and JavaScript, and browser caching.
How to Send Application Logs from EC2 to CloudWatch Logs
2021/03/02·2 min readThis blog shows how to send application logs from an Amazon Linux 2 EC2 instance to AWS CloudWatch Logs, including how to set up and configure the CloudWatch Logs agent.
How to Pass AWS Certified SysOps Administrator - Associate SOA-C02 - Study Question List
2021/03/01·6 min readStarting from July 27, 2021, the AWS Certified SysOps Administrator - Associate exam was updated from SOA-C01 to SOA-C02. This blog helps you prepare for the exam based on the exam guide. Below is a list of questions compiled during the review of the exam guide. These questions won't guarantee you'll pass the exam, but they will help you better prepare.
How to Setup Swagger with Nest.js
2021/03/01·2 min readThis blog is about how to set up Swagger / OpenAPI with Nest.js, a progressive Node.js framework. It covers how to define a few sample APIs and how to enable Swagger UI in Nest.js.
How to Setup a HTTPS Node JS Server on Amazon EC2
2021/03/01·13 min readA complete guide to set up an HTTPS Node.js web server on EC2, including Express.js setup, AWS Certificate Manager SSL/TLS, application load balancer with HTTP to HTTPS redirect, and Route 53 domain configuration.
How To Enable S3 Bucket Access With IP Address
2021/02/23·2 min readS3, Amazon Simple Storage Service, is an object cloud storage service that can store data on the cloud and is designed for 99.999999999% (11 9's) of durability. For example, you can host image files. You can either make the S3 bucket public so the images are publicly available, or you can keep the S3 bucket private and use CloudFront to access the S3 files. This blog shows how to make it public with a specific IP address.
Design Principles in Software Development Part 1
2021/02/20·8 min readA guide to widely used design principles in software development, including DRY, SoC, DIE, KISS, YAGNI, and TDA, with practical example code.
Design Principles in Software Development Part 2
2021/02/17·5 min readThis blog talks about design principles in software development. It includes SOLID and a few more widely used design principles, with example code.
How Much does CloudWatch Logs Cost
2021/02/15·2 min readSo CloudWatch logs are not free, but there's no up-front cost and the price is cheap to get started. Here are a few things you can pay attention to for CloudWatch logs.
How to Backup DynamoDB Data to Different AWS Account
2021/02/13·3 min readThis blog shows how to migrate DynamoDB data between different AWS accounts. You can migrate DynamoDB by using different approaches such as AWS S3 with AWS Glue, Data Pipeline, or Amazon EMR. Here, we'll use S3 and focus on how to move DynamoDB backup data into a different AWS account.
How to Sync S3 Bucket to Different AWS Account
2021/02/11·2 min readThis blog shows how to move S3 Bucket content from one AWS account to another AWS account.
How to Build Private REST API with Lambda and Used By EC2
2021/02/08·4 min readThis blog shows how to create a private REST API that will be consumed by an EC2 Linux Instance. It uses the AWS API Gateway to build a private REST API and the existing VPC endpoint to communicate from EC2 to the REST API. The traffic from EC2 to the REST API will not go through the public internet.
How to Get Started with Python
2021/02/08·1 min readAs an experienced developer with C# and JavaScript who hasn't done any work with Python yet, my main motivation for learning Python is to learn AI and ML, as many courses require basic Python knowledge. As a beginner starting to learn Python, I searched around for good resources and will share them here.
How to Setup MongoDB on Windows
2021/02/03·4 min readThis blog shows how to set up MongoDB 4.4 Community version on Windows 10 as a local development environment, create a simple database, table, and collection, and how to backup and restore data by using mongoexport and mongoimport.
Upload to AWS S3 By Using Node.js
2021/01/16·2 min readThis blog shows sample code for how to upload files to AWS S3 by using Node.js.