diff --git a/getting-started/rds/create-simple-rds/main.tf b/getting-started/rds/create-simple-rds/main.tf new file mode 100755 index 0000000..470f20c --- /dev/null +++ b/getting-started/rds/create-simple-rds/main.tf @@ -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" +}