Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paoliniluis/bastion-rds
AWS Terraform stack with VPC (public and private subnets), a bastion host (public) and RDS Postgres (private)
https://github.com/paoliniluis/bastion-rds
Last synced: 7 days ago
JSON representation
AWS Terraform stack with VPC (public and private subnets), a bastion host (public) and RDS Postgres (private)
- Host: GitHub
- URL: https://github.com/paoliniluis/bastion-rds
- Owner: paoliniluis
- Created: 2023-01-31T21:59:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T22:20:37.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T06:47:36.473Z (about 2 months ago)
- Language: HCL
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What
This is a Terraform stack that will deploy the following architecture:
![bastion-rds](bastion-rds.png)## How to run
1) install Terraform
2) clone this repo
3) create a key in AWS IAM and add those to terraform.tfvars (you need to create this file)
4) run "terraform init"
5) run "terraform apply" and wait for 5 minsIf you need the private key that was created, run "terraform output -raw private_key"
Once you're done, run "terraform destroy"
## Sample of terraform.tfvars
```
AWS_ACCESS_KEY = ""
AWS_SECRET_KEY = ""
AWS_REGION = "us-east-1"
```