Skip to content

Commit

Permalink
Add[#204]: an example to create basic RDS database (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq authored Dec 3, 2023
2 parents ce252b6 + 798f0c7 commit 02dc645
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions getting-started/rds/create-simple-rds/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}

required_version = ">= 1.2.0"
}

provider "aws" {
region = "us-east-1"
}

resource "aws_db_instance" "basic_rds_instance" {
engine = "mysql"
allocated_storage = 20
instance_class = "db.t2.micro"
engine_version = "latest"
name = "my-rds-instance"
username = "root"
password = "password"
}

0 comments on commit 02dc645

Please sign in to comment.