126. Bastion Containers

Опубликовано: 27 Июнь 2024
на канале: AWS Bites
236
8

This episode discusses solutions for securely accessing private VPC resources for debugging and troubleshooting. We cover traditional approaches like bastion hosts and VPNs and newer solutions using containers and AWS services like Fargate, ECS, and SSM. We explain how to set up a Fargate task with a container image with the necessary tools, enable ECS integration with SSM, and use SSM to start remote shells and port forwarding tunnels into the container. This provides on-demand access without exposing resources on the public internet. We share a Python script to simplify the process. We suggest ideas for improvements like auto-scaling the container down when idle. Overall, this lightweight containerized approach can provide easy access for debugging compared to managing EC2 instances.

💰 SPONSORS 💰

AWS Bites is brought to you by fourTheorem an AWS consulting partner with tons of experience with AWS. If you need someone to help you with your ambitions AWS projects, check out https://fourtheorem.com


🔖 Chapters:

00:00 Introduction
00:55 The problem of accessing private VPC resources
03:24 The challenges of using EC2 instances as a bastion host
04:32 Using containers instead of EC2 instances
04:38 Setting up a Fargate task with a container
07:35 Using SSM to connect to the container
10:24 Python script to simplify the process
11:54 Potential improvements
13:02 Closing notes


In this episode, we mentioned the following resources:

Our previous episode "78. When do you need a bastion host?": https://awsbites.com/78-when-do-you-n...
Basti - Securely connect to RDS, Elasticache, and other AWS resources in VPCs with no idle cost: https://github.com/basti-app/basti
Our gist with a Python script you can adjust to your needs: https://gist.github.com/eoinsha/157f6...

You can listen to AWS Bites wherever you get your podcasts:
Apple Podcasts: https://podcasts.apple.com/us/podcast...
Spotify: https://open.spotify.com/show/3Lh7Pzq...
Google: https://podcasts.google.com/feed/aHR0...
Breaker: https://www.breaker.audio/aws-bites
RSS: ​​https://anchor.fm/s/6a3312a0/podcast/rss


Do you have any AWS questions you would like us to address?
Leave a comment here or connect with us on X, formerly Twitter:
  / eoins  
  / loige  

#aws #bastion #vpc #networking #containers


Смотрите видео 126. Bastion Containers онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь AWS Bites 27 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 23 раз и оно понравилось людям.