You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/examples/aws-rds
Rolo 11a6efa358
Use [] around depends_on value.
10 years ago
..
README.md typo 11 years ago
main.tf Use [] around depends_on value. 10 years ago
outputs.tf examples: unify the configuration file syntax 11 years ago
sg-variables.tf examples: unify the configuration file syntax 11 years ago
sg.tf examples: unify the configuration file syntax 11 years ago
subnet-variables.tf examples: unify the configuration file syntax 11 years ago
subnets.tf examples: unify the configuration file syntax 11 years ago
variables.tf examples: unify the configuration file syntax 11 years ago

README.md

Creating an RDS instance in AWS

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.

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 corresponding sections in main.tf under aws_db_instance

Pass the password variable through your ENV variable.

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.

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

Once satisfied with plan, run 'terraform apply'