<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jason G</title>
    <description>The latest articles on DEV Community by Jason G (@jasgong).</description>
    <link>https://dev.to/jasgong</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F339228%2Ff238d692-3f4a-4def-b783-b3883607eee1.JPG</url>
      <title>DEV Community: Jason G</title>
      <link>https://dev.to/jasgong</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jasgong"/>
    <language>en</language>
    <item>
      <title>Self hosting your own WireGuard based VPN in 5 minutes (video)</title>
      <dc:creator>Jason G</dc:creator>
      <pubDate>Mon, 26 Sep 2022 16:57:55 +0000</pubDate>
      <link>https://dev.to/jasgong/self-hosting-your-own-vpn-in-5-minutes-video-4f8o</link>
      <guid>https://dev.to/jasgong/self-hosting-your-own-vpn-in-5-minutes-video-4f8o</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/SZNmlkT_ltY"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;First attempt at making a tutorial video for our open-source project. What do you think?&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>devops</category>
      <category>security</category>
      <category>opensource</category>
    </item>
    <item>
      <title>AWS VPN: Avoid a large surprise bill by using this cost calculator.</title>
      <dc:creator>Jason G</dc:creator>
      <pubDate>Tue, 30 Aug 2022 18:18:49 +0000</pubDate>
      <link>https://dev.to/firezone/avoiding-a-surprise-aws-vpn-bill-using-a-cost-calculator-5d2i</link>
      <guid>https://dev.to/firezone/avoiding-a-surprise-aws-vpn-bill-using-a-cost-calculator-5d2i</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y01tMUnV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/31m7ii0iudw45u6w9e5q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y01tMUnV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/31m7ii0iudw45u6w9e5q.png" alt="Image description" width="880" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many &lt;a href="https://news.ycombinator.com/item?id=31907374"&gt;AWS billing horror stories&lt;/a&gt; start with provisioned resources that were not terminated or forgotten. AWS's product offerings are vast, so how you're billed can often be complex. This is no exception for AWS VPN, which has 5+ variables that factor into your monthly bill.&lt;/p&gt;

&lt;p&gt;The team at &lt;a href="https://www.firezone.dev/"&gt;Firezone&lt;/a&gt; often helps companies through budgeting decisions regarding their remote access. We wrote this article to share the learnings. Below we break down the cost in a couple of common scenarios and provide a &lt;a href="https://docs.google.com/spreadsheets/d/1nSrriw0tSnb__VXf4w02GVWZC_yyoN9D2v8cDBwgioQ/edit#gid=1608001156"&gt;simple calculator&lt;/a&gt; to help project and visually illustrate the main contributors to your monthly bill. Hopefully, it's helpful!&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;What’s AWS VPN?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;As security breaches become common place, properly managing remote access to your VPC is more critical than ever. AWS VPN lets you set up encrypted connections between your network or device and your AWS resources. AWS VPN consists of two products: Site-to-site VPN and Client VPN.&lt;/p&gt;

&lt;p&gt;AWS site-to-site VPN allows you to create a secure connection between AWS and your on-prem servers, data centers, and other remote sites.&lt;/p&gt;

&lt;p&gt;If you've looked for a point-to-site way to access your cloud resources on AWS securely, chances are you've looked at AWS Client VPN. AWS Client VPN is a managed solution that lets you securely access your resources on AWS. It uses the OpenVPN protocol and supports most features you'd find in a VPN (SSO, MFA).&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;A few example scenarios&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Sample scenarios are the main section lacking from AWS' documentation. For those that want a rough budget of how much AWS VPN will cost each month, here are a few examples. To create your own, use our &lt;a href="https://docs.google.com/spreadsheets/d/1nSrriw0tSnb__VXf4w02GVWZC_yyoN9D2v8cDBwgioQ/edit?usp=sharing"&gt;price calculator&lt;/a&gt; (make a copy).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.google.com/spreadsheets/d/1nSrriw0tSnb__VXf4w02GVWZC_yyoN9D2v8cDBwgioQ/edit#gid=1947558723"&gt;Scenario 1&lt;/a&gt; - Small team or personal project (1 VPC, 1 subnet, 3 users)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cost: $96 per month ($1,152 annually)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Vq6Tyah5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tfxaf6b15v7nf8zdzq41.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Vq6Tyah5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tfxaf6b15v7nf8zdzq41.png" alt="Image description" width="880" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is likely the most simple use case for AWS VPN. It highlights the high fixed cost of target network associations, which for smaller teams will make up the majority of your cost each month.&lt;/p&gt;

&lt;p&gt;With such a small group of users, a bastion host or self-managing something like WireGuard can be a good low-cost option. In theory, if your VPN demands are infrequent, you can remove any target-network associations when you are not using the VPN.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.google.com/spreadsheets/d/1nSrriw0tSnb__VXf4w02GVWZC_yyoN9D2v8cDBwgioQ/edit#gid=596640168"&gt;Scenario 2&lt;/a&gt; - Medium sized team (2 VPCs, 3 subnets, 10 users, split tunnel)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cost: $368 per month ($4,416 annually)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5G8vFryH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hszktuprh5cngoxz3m1i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5G8vFryH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hszktuprh5cngoxz3m1i.png" alt="Image description" width="880" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a more likely scenario for a team or small company. If you’re building software, your resources will be split across production, test, and dev environments. AWS themselves recommend &lt;a href="https://aws.amazon.com/organizations/getting-started/best-practices"&gt;splitting your environment across multiple accounts&lt;/a&gt; as your workloads become more complex.&lt;/p&gt;

&lt;p&gt;Segregating your environments is great for your development processes and security, but it will increase your costs with AWS VPN. Each account requires a separate AWS Client VPN endpoint, and each subnet will require its own target network association. In this example, we’ll use 4 to represent dev, test, and prod split across 2 availability zones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.google.com/spreadsheets/d/1nSrriw0tSnb__VXf4w02GVWZC_yyoN9D2v8cDBwgioQ/edit#gid=768894664"&gt;Scenario 3&lt;/a&gt; - Larger company (50 users, 1 on-prem environment, 4 subnets, full-tunnel)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cost: $850 per month ($10,200 annually)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1Hndaobf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sol9p4xrm3ewixbkq08z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1Hndaobf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sol9p4xrm3ewixbkq08z.png" alt="Image description" width="880" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The data egress costs will vary greatly depending on the company. In this example, we assumed 10 GB per user. That’s about 12 Zoom calls - maybe a bit conservative in today’s remote workplace.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Breaking down the cost ($USD)&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Client VPN target network association - $0.10 to $0.15 per hour&lt;/strong&gt;I asked my AWS rep if this can be disassociated when not used to save cost since it's the most significant contributor to fixed costs for smaller teams. I didn't get a straight answer, but let me know if you've tried this before.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Client VPN connection time - $0.05 per hour&lt;/strong&gt;Connection time is the aggregate time your VPN users have connected to the VPN (rounded up to the nearest hour).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Site-to-site connection time - $0.05 per hour&lt;/strong&gt;You are charged for each hour that your VPN connection is provisioned and available. A common use case is creating a connection between your data center or on-prem network with the AWS VPC.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Egress traffic - $0.05 to $0.09 per GB for more North American + Europe regions&lt;/strong&gt;Data egress is not usually a huge contributor to cost (for VPNs anyway) unless you turn on "full tunnel" traffic for clients. For the calculator, I ignored intra-region transfers. Those are priced at $0.01 per GB. Here's a &lt;a href="https://aws.amazon.com/blogs/architecture/overview-of-data-transfer-costs-for-common-architectures/"&gt;useful resource&lt;/a&gt; from AWS on different types of data-transfer costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Site-to-site global accelerator premiums - $0.05 per hour + $0.015 to $0.091 per GB&lt;/strong&gt;Released in 2019, this feature improves VPN performance by routing VPN traffic through the AWS network instead of the public internet. This could be helpful when running latency-sensitive applications or workloads.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Tips to reduce costs&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Split Tunneling&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When setting up your Client VPN Endpoint, the default config option is to use a full tunnel (split tunneling disabled). This means all traffic from your end users will be routed through the endpoint - even traffic destined for the public internet. Ingress is free, but with zoom calls (up to 3.8 Mbps up) being commonplace, the costs can rack up quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terminate unused endpoints and associations&lt;/strong&gt;Target network associations are the main fixed cost of AWS VPN. *&lt;strong&gt;&lt;em&gt;If your usage is infrequent, you could disassociate the target networks until the route is needed again. Since AWS provides a &lt;a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/associate-client-vpn-target-network.html"&gt;CLI command&lt;/a&gt; and an &lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AssociateClientVpnTargetNetwork.html"&gt;API endpoint&lt;/a&gt; *&lt;/em&gt;&lt;/strong&gt;for configuring target networks, you could even set up a script to “shut down” the VPN when it is not needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set up a billing alarm&lt;/strong&gt;Using CloudWatch you can create an alert that triggers when current spending passes above a set threshold. Take a look at the &lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html"&gt;AWS docs&lt;/a&gt; on how to set this up.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Should I use AWS VPN?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;It depends. At a minimum you should probably ask yourself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What’s my budget?&lt;/strong&gt; Use the &lt;a href="https://docs.google.com/spreadsheets/d/1nSrriw0tSnb__VXf4w02GVWZC_yyoN9D2v8cDBwgioQ/edit?usp=sharing"&gt;price calculator&lt;/a&gt; to figure out what your bill will likely be each month. There are plenty of other VPNs to pick from, though some may take more time to deploy and manage.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Where are my private resources? It makes more sense to use AWS VPN if most of your resources are located on AWS. For multi-cloud environments, you may want to consider a vendor agnostic solution.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What features do I need? The &lt;a href="https://aws.amazon.com/vpn/faqs/"&gt;AWS docs&lt;/a&gt; do a pretty good job at answering this question.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even with the potential costs, AWS VPN is a great product. It’s fully managed, highly available, and seamlessly ties into AWS IAM (federated to the IdP of your choice). How to pick the right remote access solution is a broad topic and deserves its own post. We'll leave that up to the reader for now.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;a href="https://www.firezone.dev/"&gt;Firezone&lt;/a&gt; is an &lt;a href="https://github.com/firezone/firezone"&gt;open-source&lt;/a&gt; alternative to legacy corporate VPNs. Firezone runs on your infrastructure. It's painless to deploy, easy to manage, and built on WireGuard® to be 4x-6x faster than OpenVPN. We wrote this post because we often help our users understand the impact of different remote access products to their IT budget. AWS is always particularly tricky to forecast.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>security</category>
      <category>devops</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Visualization of the biggest code bases (using blender3d and data from dataisbeautiful)</title>
      <dc:creator>Jason G</dc:creator>
      <pubDate>Fri, 10 Apr 2020 23:15:28 +0000</pubDate>
      <link>https://dev.to/kite/visualization-of-the-biggest-code-bases-using-blender3d-and-data-from-dataisbeautiful-4efk</link>
      <guid>https://dev.to/kite/visualization-of-the-biggest-code-bases-using-blender3d-and-data-from-dataisbeautiful-4efk</guid>
      <description>&lt;p&gt;Maybe a bit too far with the zooming, will be better next time!&lt;br&gt;
Youtube - &lt;a href="https://www.youtube.com/watch?v=afEg6VuAQJQ"&gt;https://www.youtube.com/watch?v=afEg6VuAQJQ&lt;/a&gt;&lt;br&gt;
Data - &lt;a href="https://docs.google.com/spreadsheets/d/1s9u0uprmuJvwR2fkRqxJ4W5Wfomimmk9pwGTK4Dn_UI/edit#gid=5"&gt;https://docs.google.com/spreadsheets/d/1s9u0uprmuJvwR2fkRqxJ4W5Wfomimmk9pwGTK4Dn_UI/edit#gid=5&lt;/a&gt;&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>python</category>
    </item>
    <item>
      <title>Trying to make better quality Python videos and looking for feedback! Here's one of our first videos on Web Scraping and SQLite</title>
      <dc:creator>Jason G</dc:creator>
      <pubDate>Fri, 21 Feb 2020 20:14:19 +0000</pubDate>
      <link>https://dev.to/kite/trying-to-make-better-quality-python-videos-and-looking-for-feedback-here-s-one-of-our-first-videos-on-web-scraping-and-sqlite-26am</link>
      <guid>https://dev.to/kite/trying-to-make-better-quality-python-videos-and-looking-for-feedback-here-s-one-of-our-first-videos-on-web-scraping-and-sqlite-26am</guid>
      <description>&lt;p&gt;There's quite a lot of content on Youtube for Python and we've all likely skipped through many videos with bad audio or really small font trying to find an answer to a problem. We want to make better quality and more entertaining content for Python, so we'd really appreciate any feedback on the videos we've made so far, suggestions on what topics you would like us to cover or just your thoughts in general about developer content on Youtube.&lt;/p&gt;

&lt;p&gt;Here are the links to our first couple videos.&lt;br&gt;
Web Scraping - &lt;a href="https://www.youtube.com/watch?v=ogPMCpcgb-E"&gt;https://www.youtube.com/watch?v=ogPMCpcgb-E&lt;/a&gt;&lt;br&gt;
SQLite - &lt;a href="https://www.youtube.com/watch?v=girsuXz0yA8"&gt;https://www.youtube.com/watch?v=girsuXz0yA8&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some Feedback so far&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;better audio levels&lt;/li&gt;
&lt;li&gt;more depth into a topic&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>discuss</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
