AWS Session Manager Step by Step Tutorial: SSH | Port-Forward | Audit | Logs

AWS Session Manager Step by Step Tutorial: SSH | Port-Forward | Audit | Logs

Anton Putra

3 года назад

17,764 Просмотров

🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - [email protected]

▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
► LinkedIn: https://www.linkedin.com/in/anton-putra
► Twitter/X: https://twitter.com/antonvputra
► GitHub: https://github.com/antonputra
► Email: [email protected]

▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
👉 [Playlist] Kubernetes Tutorials: https://www.youtube.com/playlist?list=PLiMWaCMwGJXnHmccp2xlBENZ1xr4FpjXF
👉 [Playlist] Terraform Tutorials: https://www.youtube.com/playlist?list=PLiMWaCMwGJXmJdmfJjG3aK1IkU7oWvxIj
👉 [Playlist] Network Tutorials: https://www.youtube.com/playlist?list=PLiMWaCMwGJXluySjXqWG6fg1H1hzd-zWz
👉 [Playlist] Apache Kafka Tutorials: https://www.youtube.com/playlist?list=PLiMWaCMwGJXlL8-E-xu8RBwyC5YfS3V5e
👉 [Playlist] Performance Benchmarks: https://www.youtube.com/playlist?list=PLiMWaCMwGJXl-h2RgOSpdO-pQaSRwlVjd
👉 [Playlist] Database Tutorials: https://www.youtube.com/playlist?list=PLiMWaCMwGJXnhmmh5pu9sdWekdRwAzV5f

=========
⏱️TIMESTAMPS⏱️
0:00 Intro
0:27 Demo
1:30 Create IAM Role and EC2 Instance
5:15 Create CloudWatch Log Group
6:25 Install AWS Session Manager Plugin
7:29 Create IAM Policy and IAM user
9:34 SSH to EC2 Instance
12:34 Port Forward from EC2 to localhost

=========
Source Code
📚 - Instructions: https://antonputra.com/amazon/aws-session-manager-tutorial/

#AWS #SessionManager #DropBastion

Тэги:

#aws_session_manager #aws_session #aws_session_manager_iam_role #aws_session_manager_vs_bastion_host #aws_session_manager_install #aws_session_manager_tutorial #session_manager_aws #session_manager_plugin #session_manager_iam_role #aws_session_manager_step_by_step #devops #aws #sre #anton_putra #aws_session_manager_ssh #aws_session_manager_port_forward #aws_session_manager_logs #aws_system #aws_systems_manager_tutorial #aws_systems_manager_demo #aws_session_manager_audit
Ссылки и html тэги не поддерживаются


Комментарии:

Anton Putra
Anton Putra - 18.09.2023 10:13

🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting ([email protected])

Ответить
Muhammed Afser
Muhammed Afser - 20.06.2023 20:10

Thanks a ton.

Ответить
Wisnu Setiawan
Wisnu Setiawan - 24.04.2023 06:32

How about with github action to connect with ssm so far ?

Ответить
Sam Green
Sam Green - 09.03.2023 04:27

excellent video, thanks

Ответить
GεnuisTεchiεs
GεnuisTεchiεs - 18.10.2022 16:20

for me i tried setting up ssm but its not working, while strating ssm not able to add instance target id.

Ответить
galeop
galeop - 16.09.2022 18:10

How does it work under the hood ? I suppose the following :
1) the EC2 instance performs remote port forwarding with Session manager, to make one of its port (eg 80) available to Session manager through that ssh tunnel (for instance on Session Manager's port 9999).
2) the AWS CLI establishes local port forwarding with Session manager, to be able to reach locally (local port 8080) Session Manager's port 9999, which itself is mapped to EC2's port 80.
Am I correct ?

Ответить
Ping Pong Kias
Ping Pong Kias - 06.06.2022 14:48

Hey, is there a way for multiple port forwards in one session? For example - --parameters '{"portNumber";["80", "443"] , "localPortNumber":["1000","2000"]}' ?

Ответить
Radzhiv Apasov
Radzhiv Apasov - 01.06.2022 22:06

Hi Anton, thank you for the video, one question, can we access instances and databases and their url’s using session manager and its not suppose to be exposed to internet!
And how many users can attempt one session in linux and windows machines.
If you know something about it pls advise

Ответить
Dan Cummings
Dan Cummings - 20.04.2022 23:08

Excellent. That's the clearest and cleanest security setup I've ever seen.

Ответить
Weelai Yang
Weelai Yang - 23.02.2022 01:05

Tried looking at the source code from the link provided via Github is not found, can you update the link?

Ответить
montpellier
montpellier - 09.02.2022 03:10

videos are way better with no background music. thanks for your hard work 👏

Ответить
Sai Rama Krishna
Sai Rama Krishna - 08.11.2021 19:37

Hey @Anton Putra, Can we somehow use the loadbalancer as ssm target to establish a session to one of the instance under loadbalancer ?

Ответить
Danielle T
Danielle T - 04.11.2021 12:48

Great content and also well explained.

Ответить
Sudarshan Phule
Sudarshan Phule - 12.08.2021 03:51

How can we forward ssh port 22 from host to local so that we can use tools like sftp in such case when we do not have direct access to ec2 and using ssm instead?

Ответить
Abdelrahman Abdelfattah
Abdelrahman Abdelfattah - 04.04.2021 00:49

great content, keep going

Ответить
Bharath Kumar
Bharath Kumar - 29.03.2021 12:02

Expecting same explanation in upcoming topics

Ответить