https://github.com/luizkowalski/terraform-saopaulo
Create a proxy machine in Sao Paulo
https://github.com/luizkowalski/terraform-saopaulo
Last synced: 3 months ago
JSON representation
Create a proxy machine in Sao Paulo
- Host: GitHub
- URL: https://github.com/luizkowalski/terraform-saopaulo
- Owner: luizkowalski
- Created: 2017-12-04T15:53:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T01:08:17.000Z (about 6 years ago)
- Last Synced: 2025-03-29T21:11:36.175Z (7 months ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform - Sao Paulo
Creates a machine to be used for tunnel
### Installation
Go to your AWS console and create a key pair file, download it and put it on the same folder as this project
Next, create a file called `terraform.tfvars` with the following content
```
aws_access_key = "YOUR_KEY"
aws_access_secret = "YOUR_SECRET"
key_pair = "YOUR_KEY_PAIR_FILE"
```Note that the `key_pair` variabe does not include the `.pem` extension
### Running
```
$ terraform plan
$ terraform apply
```### Usage
After terraform apply all the changes, it will output the command you need to run in order to start tunneling. It will look like this
```
sshuttle --dns -r ec2-user@x.x.x.x 0/0 -e "ssh -A -i key_pair.pem"
```Remember to install [sshuttle](https://github.com/sshuttle).
### Tear down
When you finish using the tunnel, just run `terraform destroy` to tear the infrastructure down so you don't pay for it