Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

RDS example

This is the example of creating RDS instance. This will create following resources. Architecture overview is here.

  1. Create VPC
  2. Create Vswitch
  3. Create Security Group and set some rules
  4. Create an ECS instance in Vswitch
  5. Create EIP and bind it to ECS instance
  6. Create a RDS instance in Vswitch and create database, db user
  7. Set ECS private ip address to RDS white list

How to use

First you need to chnage configuration to yours.

$ cp terraform.tfvars.sample terrafrom.tfvars
$ vim terraform.tfvars
 => Edit variables with your favorite editor.

Deploy to Alibaba Cloud

$ terraform apply
It takes a 5-10 minitus to create RDS. You need to wait to finish.