A step-by-step guide on how to connect in the AWS Client VPN using OpenVPN

Replica: https://www.lozanomatheus.com/post/aws-client-vpn-connect-using-openvpn

Image for post
Photo by A Young Kermit The Frog on Gfycat

Introduction

The idea of this post is to show how you can use OpenVPN Connect to establish a tunnel with AWS, by using AWS Client VPN. I’ll explain how AWS Client VPN works in a later post.

OpenVPN is free and open-source software (FOSS) under the GNU GPLv2 license. OpenVPN Connect is a VPN client and is currently available for Android, iOS, Linux, macOS and Windows.

The authentication methods shown in this post are user-based and certificate-based. AWS Client VPN also provides support for MFA. The MFA is only available for Microsoft AD, AD Connector and when it’s enabled…


A CLI tool that can easily manage more than 281 runtimes, and it’s easy to add custom runtimes/plugins. It’s open-source!

Replica: https://www.lozanomatheus.com/post/an-easy-way-to-switch-between-runtime-versions-nodejs-terraform-and-279

How to keep tools updated. How to switch between versions on Linux
Screenshot from asdf website

Introduction

There are many tools out there that promise to manage multiple runtimes and/or runtime versions, some are exclusive to a specific language, like the pyenv and others can manage multiple runtimes, but it’s not easy to switch between the versions of the same runtime, like the Homebrew (You can unlink/link, but in my opinion, it’s too unstable).

Here comes the asdf, yes, this is the name. Simple name, simple to use! asdf is an open-source tool under the MIT License. Currently, it supports 281 runtimes, also known as plugins. …


Let’s explore the variables scopes and types, the ways to define variables on Bash and when/where to use each one.

Replica: https://www.lozanomatheus.com/post/bash-variables-things-that-you-probably-don-t-know-about-it

How to list Bash variables
List of variables with typeset

About this post

It’s mainly focused on the variable scopes, their differences, when/where to use each of them, etc. I start this post because I see there is a lot of misunderstanding/misuse of the Bash variables. It can be very confusing, complex and I hope this post will help you to know more about the Bash variables, including Bash environment variables.

The types

There are three types of Bash variables: Array, Integer and String. It’s possible to cast/convert the values between all of them, except string to integer (in this case, Bash will set to 0). …


There are many best practices that can improve your Cloud environment, the multi-account AWS environment is one of them.

Replica: https://www.lozanomatheus.com/post/exploring-the-multi-account-aws-environment-and-reducing-costs-with-it

AWS multiple accounts
Using multi-account within the AWS Control Tower

The multi-account environment

It’s basically having multiple accounts for specific goals, could be per team, per environment, per project. AWS is very flexible in terms of how to achieve a multi-account environment, you can choose how you want to split your accounts.

There are a lot of good things you’ll get by following this best-practice, like centralized management (consolidated billing, accounts, etc), define policies per account or Organizational Unit (like audit/log is mandatory, tag policy, MFA is mandatory, etc) and many other things.

The options

You can achieve the multi-account environment by using the AWS Organizations and/or AWS Control Tower.

AWS Organizations

The AWS Organizations…


Image for post

About the blog

It’s divided into a few categories. The main categories right now are the Tips & Tricks (for AWS and for Bash) and the News, Updates and Reminders.

I’ll be posting twice a week:

1x Tips & Tricks = Every Wednesday at 19:00 UTC

1x News, Updates and Reminders = Every Sunday at 19:00 UTC

The replicas are posted on https://lozanomatheus.com


Image for post

About the blog

It’s divided into a few categories. The main categories right now are the Tips & Tricks (for AWS and for Bash) and the News, Updates and Reminders.

I’ll be posting twice a week:

1x Tips & Tricks = Every Wednesday at 19:00 UTC

1x News, Updates and Reminders = Every Sunday at 19:00 UTC

The replicas are posted on https://lozanomatheus.com


Image for post

About the blog

It’s divided into a few categories. The main categories right now are the Tips & Tricks (for AWS and for Bash) and the News, Updates and Reminders.

I’ll be posting twice a week:

1x Tips & Tricks = Every Wednesday at 19:00 UTC

1x News, Updates and Reminders = Every Sunday at 19:00 UTC

The replicas are posted on https://lozanomatheus.com

Matheus Lozano

A SysAdmin who love to automate everything — DevOps, SRE and Chaos Engineer, let's share our skills.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store