Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Aug 5, 2024
1 parent 897af97 commit 824d9fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure/modules/ssh-jumper/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ param srcKeyVaultRGNName string
@secure()
param srcKeyVaultSshSecretKey string

var name = '${namePrefix}-jumper'
var name = '${namePrefix}-ssh-jumper'

resource srcKeyVaultResource 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: srcKeyVaultName
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ Ensure you log into the azure CLI using the relevant user and subscription using

- Connect to the VNet using the following command:
```
az ssh vm --resource-group dp-be-<env>-rg --vm-name dp-be-<env>-jumper
az ssh vm --resource-group dp-be-<env>-rg --vm-name dp-be-<env>-ssh-jumper
```
(You may be prompted to install the ssh extension for the azure cli)

- To create an SSH tunnel for accessing specific resources (e.g., PostgreSQL database), use:
```
az ssh vm -g dp-be-<env>-rg -n dp-be-<env>-jumper -- -L 5432:<database-host-name>:5432
az ssh vm -g dp-be-<env>-rg -n dp-be-<env>-ssh-jumper -- -L 5432:<database-host-name>:5432
```
This example forwards the PostgreSQL default port (5432) to your localhost. Adjust the ports and hostnames as needed for other resources.

Expand Down

0 comments on commit 824d9fc

Please sign in to comment.