Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Note: the term _Terraform_ is used in this documentation when talking about gene
- [Stacks configurations](#stacks-configurations)
- [States centralization configuration](#states-centralization-configuration)
- [How to migrate from one backend to another for state centralization](#how-to-migrate-from-one-backend-to-another-for-state-centralization)
- [SSH Tunnels configuration](#ssh-tunnels-configuration)
- [Stacks file structure](#stacks-file-structure)
- [Usage](#usage)
- [Stack bootstrap](#stack-bootstrap)
Expand Down Expand Up @@ -492,6 +493,23 @@ $ tfwrapper plan
# should return the same changes diff as before
```

### SSH Tunnels configuration

`tfwrapper` can automatically open SSH tunnel to connect to a resource (Like database server) through a bastion.

In the stack configuration file :
```
tunnels:
mysql:
gateway_host: "bastion-host"
gateway_port: 22
gateway_login: tunnel-user
gateway_private_key: ~/.ssh/keys/bastion-host.key
remote_host: "mysqlf-server.mysql.database.azure.com"
remote_port: 3306
local_port: 3306
```

## Stacks file structure

Terraform stacks are organized based on their:
Expand Down
Loading