terraform/examples/aws-rds
Sathiya Shunmugasundaram 074f1ed625 Added postgres option 2015-06-09 12:37:22 -04:00
..
README.md Added postgres option 2015-06-09 12:37:22 -04:00
main.tf Added postgres option 2015-06-09 12:37:22 -04:00
outputs.tf Added postgres option 2015-06-09 12:37:22 -04:00
sg-variables.tf Added postgres option 2015-06-09 12:37:22 -04:00
sg.tf Added postgres option 2015-06-09 12:37:22 -04:00
subnet-variables.tf Added postgres option 2015-06-09 12:37:22 -04:00
subnets.tf Initial commit for aws-rds example 2015-06-09 11:02:19 -04:00
variables.tf Added postgres option 2015-06-09 12:37:22 -04:00

README.md

Creating an RDS insatnce in AWS

This example provides sample configuration for creating a mysql or postgres insatnce. For Oracle/SQL Servers, replace default values with appropriate values, they are not included in sample since the number of options are high.

The example creates db subnet groups and a VPC security group as inputs to the instance creation

For AWS provider, set up your AWS environment as outlined in https://www.terraform.io/docs/providers/aws/index.html

If you need to use existing security groups and subnets, remove the sg.tf and subnets.tf files and replace the corresponidng sections in main.tf under aws_db_instance

Several paraneters 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.

Once ready run 'terraform plan' to review. At the minimum, provide the vpc_id as input variable.

Once satisfied with plan, run 'terraform apply'