You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/secure-aws-vpc-with-bastion-host.html
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,6 @@ <h2>Context</h2>
67
67
<divclass="content-block">
68
68
<p>
69
69
This project was built as a practical AWS networking lab to understand how secure access to private compute resources can be designed inside a VPC.
70
-
It is a personal learning project based on a common production architecture pattern.
71
70
</p>
72
71
73
72
<p><strong>Key constraints:</strong></p>
@@ -97,7 +96,7 @@ <h2>Architecture</h2>
97
96
</p>
98
97
99
98
<p>
100
-
Administrative SSH access is routed through the bastion host, rather than exposing the private instance directly. Outbound internet access from the private subnet is handled through a NAT Gateway in the public subnet, which then routes traffic through the Internet Gateway.
99
+
Administrative SSH access is routed through the bastion host (via private IP addresses), rather than exposing the private instance directly. Outbound internet access from the private subnet is handled through a NAT Gateway in the public subnet, which then routes traffic through the Internet Gateway.
101
100
</p>
102
101
</div>
103
102
@@ -132,9 +131,14 @@ <h2>Challenges</h2>
132
131
<divclass="content-block">
133
132
134
133
<divclass="challenge">
135
-
<p><strong>Understanding why the private instance could not be accessed directly</strong></p>
134
+
<p><strong>Understanding why I could not SSH into either instance initially</strong></p>
135
+
136
+
<pclass="challenge-detail">
137
+
Initially I could not SSH into either instance, even from within my AWS account. I learned that EC2 instances are launched without a public IP address by default, even when launched into public subnets.
138
+
</p>
139
+
136
140
<pclass="challenge-detail">
137
-
The private instance had no public IP address and could not be reached from the internet. The solution was to access it through the bastion host using its private IP address.
141
+
The private instance had no public IP address and could not be reached from the internet. The solution was to access it through the bastion host using its private IP address, but this was only possible after relaunching the public instance with a public IP address.
0 commit comments