Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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 mins

If 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"
```