TechnoApple Blogs
Developer's daily notes, blogs, and tutorials about software development, C#, Node.js, Javascript, AWS.
How to Deploy Lambda with Node.js with Package Dependencies
2021/5/6·4 min readAWS Lambda is serverless compute service and let you run code at AWS's managing servers on the cloud, you will only worry aboutyour code and AWS will manage the underneath servers. This blog is trying to show how to get start with Lambda by use Node.js withpackage dependencies, the code will include one dependency module util, it'll will use zip to compress the index.js andnode_modules folder.
How to Deploy Lambda with Node.js without Dependencies
2021/5/3·3 min readAWS Lambda is serverless compute service and let you run code at AWS's managing servers on the cloud, you will only worry aboutyour code and AWS will manage the underneath servers. This blog is trying to show how to get start with Lambda by use Node.js withNo package dependencies.
How to Self-Hosted Sentry.io at AWS EC2
2021/5/1·3 min readThis blog shows how to self-hosted Sentry.io with AWS EC2.
How to Getting Started with Sentry Error Tracking
2021/4/1·2 min readThis blog shows how to get started with Sentry.io for tracking JavaScript errors and performance.
List of AWS CloudTrail Record Fields
2021/3/7·3 min readAWS CloudTrail helps you record all API call at your AWS account, it enables you to detect who is making what kind of changes tothe AWS environment.
How to Send MongoDB Logs to CloudWatch Logs
2021/3/5·1 min readThis blog shows how to send MongoDB log files to AWS CloudWatch logs, you can spend multiple logs to the AWS CloudWatch logs bydefining the awslogs.config file.
How to Use CloudWatch Logs Insights to Analyze Logs
2021/3/5·1 min readHere, I provide examples of how to use CloudWatch Insights to search or analyze log data in CloudWatch logs. You can query to oneLog group or multiple logs together to analyze the data, you can also save the query and save the result to the CloudWatchdashboard as well.
WebSite Performance Improvement - Lighthouse
2021/3/4·1 min readHow to Collect Memory Disk Usage By Using CloudWatch Agent
2021/3/20·2 min readThis blog provides a quick guide on how to set up CloudWatch Agent manually on EC2 Linux Instance, CloudWatch Agent enables you tocollect system or custom metrics from Amazon EC2 instances across operating systems. You can install CloudWatch Agent on AWS Cloudor on-promise server, Linux, or Windows as well.
How to Send Application Logs from EC2 to CloudWatch Logs
2021/3/2·3 min readThis blog shows how to send application logs from Amazon Linux 2 EC2 Instance to AWS CloudWatch logs, it'll include how to set upand configure.
How to Pass AWS Certified SysOps Administrator - Associate SOA-C02 - Study Question List
2021/3/1·5 min readStarting from July 27, 2021, the AWS Certified SysOps Administrator - Associate exam has been updated, the exam changed fromSOA-C01 to SOA-C02. This blog will help to prepare for the exam base on their exam guide. Below are setlist of question during thereview for the exam guide, these are just a few questions when we reading the guide, it won't guarantee to pass the exam if youknow all but at least will help you better to prepare the exam.
How to Setup Swagger with Nest.js
2021/3/1·3 min readThis blog is about how to setup Swagger / OpenAPI with Nest.js, a progressive Node.js framework, it will cover how to define fewsample API and how to enable Swagger UI at Nest.js.
How to Setup a HTTPS Node JS Server on Amazon EC2
2021/3/1·10 min readThis blog is a complete guide that shows how to set up HTTPS node.js web server on EC2 from beginning to end. It'll include how to set up a simple Express.js web app on EC2, how to create an SSL/TSL certificate by using AWS Certificate Manager, how to setup AWS application load balancer and create redirect rule from non-www to www, HTTP to HTTPS, and how to use Route 53 to configure a route from your custom domain to the AWS application load balancer. This blog will assume using example.com, at the end of the blog, we'd like all the `http://example.com`, `http://www.example.com`, `https://example.com` redirect to `https://www.example.com`.
How to Build Private REST API with Lambda and Used By EC2
2021/2/8·6 min readThis blog shows how to create a private REST API, and then will consume by the EC2 Linux Instance. It will use the AWS API Gatewayto build a private REST API and use the existing VPC endpoint to communicate from EC2 to REST API. The traffic from EC2 to RESTAPI will not go through the public internet.
How to Get Start with Python
2021/2/8·1 min readI'm an experienced developer with C# and Javascript but haven't done any work with Python yet, my main motivation for learningPython is part of learning AL, ML lots of courses require you to have basic Python knowledge. So as a beginner who starts learningPython, I'm searching around to see where are good resources to learn and will share at here as well.
How to Setup MongoDB on Windows
2021/2/3·1 min readThis blog shows how to set up MongoDB 4.4 Community version on windows 10 as a local development environment, create a simpledatabase, table, and collection, and how to backup and store data by using mongoexport and mongoimport.
How To Enable S3 Bucket Access With IP Address
2021/2/23·4 min readS3, Amazon Simple Storage Service is an object cloud storage service can store data on the cloud and designed of 99.999999999 (119's ) of durability. For example you can host image files, you can eitehr make the S3 bucket public so the images is publicavailable so you can access to the file, or you can keep the remain the S3 as private but use the CloudFront to access the S3file, this blog just shows how to make it public with specific IP Address.
Design Principles in Software Development Part 1
2021/2/20·9 min readThis blog is talking about design principles in software development. It includes DRY, Soc, DIE and few more wildly used designprinciple and provide example code.
Design Principles in Software Development Part 2
2021/2/17·8 min readThis blog is talking about design principles in software development. It includes DRY, Soc, DIE, SOLID and few more wildly useddesign principle and provide example code.
How Much does CloudWatch Logs Cost
2021/2/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 few things you canpay attention for the CloudWatch logs.
How to Backup DynamoDB Data to Different AWS Account
2021/2/13·5 min readThis blog shows how to migrate DynamoDB data between different AWS Account. You can migrate DynamoDB by using differentapproaches. 1. AWS S3 with AWS Glue. 2. Data Pipeline. 3. Amazon EMR, here, we'll use S3 and focus on how to move DynamoDB backupdata into different AWS account.
How to Sync S3 Bucket to Different AWS Account
2021/2/11·4 min readThis blog shows how to move S3 Bucket content from one AWS account to another AWS account.
PubSub to BigQuery via Dataflow with GCP
2021/11/16·3 min readGCP Pub/Sub is managed messaging service provide by GCP, this blog demo how to create Pub/Sub and use dataflow to subscribe datainto BigQuery.
Quick Start to Install Google Cloud Cli
2021/11/1·1 min readThis blog shows a quick memo on how to get started with GCP cloud cli.
Setting Up Next.js on AWS EC2 Instance
2021/10/2·1 min readNext.js is a React-based web application framework built on top of Node.js web application, AWS EC2 is Amazon AWS Service's cloudcomputing which hosts the VM in the cloud. In this tutorial, we will manually create an EC2 instance and then SSH into theinstance and install and set up the Next.js.
How to Use API Gateway with AWS Lambda Versioning and Aliases
2021/1/3·5 min readThis blog shows how to build a simple API Gateway REST API with AWS Lambda. We'll also use AWS Lambda versioning and aliases toswitch to a different version by using Node.js.
Upload to AWS S3 By Using Node.js
2021/1/16·1 min readThis blog is to show some sample code that how to upload files to AWS by Node.js.
Few Useful Command for Git Log Commit
2021/1/11·1 min readHere a few commands if you want to get a list of git commit information.
How to Squash All Git Commits into One
2021/1/11·1 min readA quick note to show how to squash all git local commits into one.
How to Find Record from MongoDB with Node.js and Mongoose
2020/9/11·1 min readThis blog will show a tutorial about how to find data into MongoDB by using Node.js with Mongoose.