<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>AWS on Bruce on AI Engineering</title><link>http://www.heyuan110.com/tags/aws/</link><description>Recent content in AWS on Bruce on AI Engineering</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 04 Jul 2020 00:16:54 +0800</lastBuildDate><atom:link href="http://www.heyuan110.com/tags/aws/index.xml" rel="self" type="application/rss+xml"/><item><title>AWS CLI Complete Guide: Installation, Configuration, S3/EC2 Commands &amp; Troubleshooting</title><link>http://www.heyuan110.com/posts/linux/2020-07-04-aws-cli/</link><pubDate>Sat, 04 Jul 2020 00:16:54 +0800</pubDate><guid>http://www.heyuan110.com/posts/linux/2020-07-04-aws-cli/</guid><description>&lt;p&gt;&lt;img src="http://www.heyuan110.com/posts/linux/2020-07-04-aws-cli/cover.webp"
 alt="AWS CLI complete guide"
 
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 width="1315"
 height="908"
/&gt;
&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;AWS CLI&lt;/strong&gt; (Amazon Web Services Command Line Interface) is Amazon&amp;rsquo;s official unified tool for managing all AWS services from the terminal. Whether you are spinning up EC2 instances, syncing files to S3, or automating deployments, the CLI is often the fastest path. This guide walks through installation, configuration, everyday commands for the most popular services, and solutions to the errors you will inevitably hit.&lt;/p&gt;</description></item><item><title>Nginx HTTPS Configuration Guide: Self-Signed Certs, Mixed Sites, and Reverse Proxy Pitfalls</title><link>http://www.heyuan110.com/posts/linux/nginx/nginx-https-complete-guide/</link><pubDate>Fri, 03 Jul 2020 13:19:44 +0800</pubDate><guid>http://www.heyuan110.com/posts/linux/nginx/nginx-https-complete-guide/</guid><description>&lt;p&gt;Configuring HTTPS on Nginx is a core skill for any backend engineer working in production. This article covers three real-world scenarios I have dealt with in actual projects: setting up self-signed certificates, running a mixed HTTP/HTTPS site, and debugging a nasty DNS caching issue when reverse proxying to AWS ELB.&lt;/p&gt;
&lt;h2 id="1-self-signed-ssl-certificates-with-openssl"&gt;1. Self-Signed SSL Certificates with OpenSSL&lt;a href="#1-self-signed-ssl-certificates-with-openssl" class="anchor" aria-hidden="true"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
 stroke-linecap="round" stroke-linejoin="round"&gt;
 &lt;path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"&gt;&lt;/path&gt;
 &lt;line x1="8" y1="12" x2="16" y2="12"&gt;&lt;/line&gt;
 &lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;In development and testing environments, self-signed certificates let you enable HTTPS without purchasing a certificate from a third-party CA.&lt;/p&gt;</description></item><item><title>Jenkins + AWS CodeDeploy + Auto Scaling: A Complete CI/CD Pipeline Guide</title><link>http://www.heyuan110.com/posts/linux/2018-11-20-jenkins-codedeploy-autoscaling/</link><pubDate>Tue, 20 Nov 2018 11:05:40 +0800</pubDate><guid>http://www.heyuan110.com/posts/linux/2018-11-20-jenkins-codedeploy-autoscaling/</guid><description>&lt;p&gt;This article walks through setting up a continuous delivery pipeline using Jenkins, AWS CodeDeploy, S3, and Auto Scaling. It covers everything from creating Auto Scaling groups to configuring blue/green deployments with lifecycle hooks.&lt;/p&gt;
&lt;h2 id="aws-auto-scaling"&gt;AWS Auto Scaling&lt;a href="#aws-auto-scaling" class="anchor" aria-hidden="true"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
 stroke-linecap="round" stroke-linejoin="round"&gt;
 &lt;path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"&gt;&lt;/path&gt;
 &lt;line x1="8" y1="12" x2="16" y2="12"&gt;&lt;/line&gt;
 &lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="benefits-of-auto-scaling"&gt;Benefits of Auto Scaling&lt;a href="#benefits-of-auto-scaling" class="anchor" aria-hidden="true"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
 stroke-linecap="round" stroke-linejoin="round"&gt;
 &lt;path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"&gt;&lt;/path&gt;
 &lt;line x1="8" y1="12" x2="16" y2="12"&gt;&lt;/line&gt;
 &lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Consistent infrastructure&lt;/strong&gt; — Every instance launches with the same software stack (Nginx, PHP, etc.), eliminating configuration drift.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rapid scaling&lt;/strong&gt; — Simply set the desired instance count in your Auto Scaling group and new instances spin up automatically.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Policy-driven scaling&lt;/strong&gt; — Define scaling policies based on metrics like CPU utilization to add or remove instances automatically.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost control&lt;/strong&gt; — Use smaller instances that scale horizontally, which is the whole point of Auto Scaling.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="auto-scaling-components"&gt;Auto Scaling Components&lt;a href="#auto-scaling-components" class="anchor" aria-hidden="true"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
 stroke-linecap="round" stroke-linejoin="round"&gt;
 &lt;path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"&gt;&lt;/path&gt;
 &lt;line x1="8" y1="12" x2="16" y2="12"&gt;&lt;/line&gt;
 &lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Auto Scaling Group:&lt;/strong&gt; A logical grouping of EC2 instances used for scaling and management. When creating a group, you specify the minimum, maximum, and desired number of instances.&lt;/p&gt;</description></item><item><title>AWS EKK Log System Setup: Elasticsearch + Kinesis + Kibana Hands-On Guide</title><link>http://www.heyuan110.com/posts/elasticsearch/2018-09-12-log-ekk/</link><pubDate>Wed, 12 Sep 2018 18:52:59 +0800</pubDate><guid>http://www.heyuan110.com/posts/elasticsearch/2018-09-12-log-ekk/</guid><description>&lt;p&gt;EKK is a log collection stack built entirely on AWS managed services: &lt;strong&gt;Amazon Elasticsearch Service&lt;/strong&gt;, &lt;strong&gt;Amazon Kinesis&lt;/strong&gt;, and &lt;strong&gt;Kibana&lt;/strong&gt;. Compared to a self-managed ELK stack, EKK is significantly easier to set up and maintain since AWS handles the infrastructure. Here is the basic architecture:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://d2908q01vomqb2.cloudfront.net/472b07b9fcf2c2451e8781e944bf5f77cd8457c8/2017/09/07/1-2.png"
 alt="EKK Architecture"
 
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 
 
/&gt;
&lt;/p&gt;
&lt;p&gt;This guide focuses on the practical aspects of collecting Nginx logs and getting them into Elasticsearch with the correct field mappings, rather than covering every AWS console click.&lt;/p&gt;</description></item><item><title>Amazon Redshift Performance Tuning: VACUUM, ANALYZE, and Operations Best Practices</title><link>http://www.heyuan110.com/posts/datawarehouse/2018-08-09-dw-redshift/</link><pubDate>Thu, 09 Aug 2018 16:03:05 +0800</pubDate><guid>http://www.heyuan110.com/posts/datawarehouse/2018-08-09-dw-redshift/</guid><description>&lt;p&gt;&lt;img src="http://www.heyuan110.com/posts/datawarehouse/2018-08-09-dw-redshift/cover.webp"
 alt="Amazon Redshift performance tuning guide"
 
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 width="1200"
 height="673"
/&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Amazon Redshift&lt;/strong&gt; is AWS&amp;rsquo;s fully managed cloud data warehouse built on columnar storage and massively parallel processing (MPP) architecture. It can deliver sub-second query performance on petabyte-scale datasets. However, as data is continuously inserted and deleted, table performance gradually degrades &amp;ndash; and that&amp;rsquo;s where VACUUM and ANALYZE come in.&lt;/p&gt;
&lt;p&gt;This article covers Redshift&amp;rsquo;s performance optimization strategies in depth, including all six VACUUM types, ANALYZE statistics updates, and practical commands for day-to-day operations.&lt;/p&gt;</description></item></channel></rss>