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
| hostedZoneId | Route53 hosted zone ID responsible for managing records for the domain. |
90
+
| enableSSMConnect | Setup ec2 instance and SSM in order to connect to the database in the private subnet. Please refer to the [SSM Connect](#ssm-connect) section for more info. |
89
91
90
92
```ts
91
93
typeDatabaseService= {
@@ -282,9 +284,90 @@ export type WebServerArgs = {
282
284
};
283
285
```
284
286
287
+
## SSM Connect
288
+
289
+
The [Database](#database) component deploys a database instance inside a private subnet,
290
+
and it's not publicly accessible from outside of VPC.
291
+
<br>
292
+
In order to connect to the database we need to deploy the ec2 instance which will be used
293
+
to open an SSH tunnel to the database instance.
294
+
<br>
295
+
Because of security reasons, ec2 instance is also deployed inside private subnet
296
+
which means we can't directly connect to it. For that purpose, we use AWS System Manager
297
+
which enables us to connect to the ec2 instance even though it's inside private subnet.
0 commit comments