github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/examples/aws-rds/README.md (about) 1 ## Creating an RDS instance in AWS 2 3 This example provides sample configuration for creating a mysql or postgres instance. For Oracle/SQL Servers, replace default values with appropriate values, they are not included in sample since the number of options are high. 4 5 The example creates db subnet groups and a VPC security group as inputs to the instance creation 6 7 For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html 8 9 If you need to use existing security groups and subnets, remove the `sg.tf` and `subnets.tf` files and replace the corresponding sections in `main.tf` under `aws_db_instance` 10 11 Pass the password variable through your ENV variable. 12 13 Several parameters are externalized, review the different variables.tf files and change them to fit your needs. Carefully review the CIDR blocks, egress/ingress rules, availability zones that are very specific to your account. 14 15 Once ready run `terraform plan` to review. 16 At the minimum, provide the vpc_id as input variable. 17 18 Once satisfied with plan, run `terraform apply`